Can Word Javascript API do FirstPage Header? - ms-word

I've read somewhere that this was still being worked on a few years ago. But does this really work now: context.document.sections.getFirst().getHeader("FirstPage")???
context.document.sections.getFirst().getHeader("Primary") works fine. I know in XML, w:titlepg needs to be on for different headers. But how to make this work in Office-JS? I can't seem to find any example of Office-JS with getHeader("FirstPage") anywhere. Is it just for show in Microsoft Docs page?

Related

Show List of Products from sql in between blog content in codeigniter using tinymce

i am working on a blog system for my travel project on codeigniter. i am using tinymce for entering blog content.
one thing, i want is - display a list of travel packages from sql results in between those content.
how to achieve this using codeigniter and tinymce.
i have tried searching for threads and forums, but couldn't find anything related to it.
i hope someone can help me in this here.
i hope this screenshot can help in understand that what i want.
Reference to the question

What's the simplest way to login to a website in swift 4

I have found other answers to this question on this site, but they seem to be either outdated or not especially descriptive. I am rather unexperienced in website access using swift so code would be greatly appreciated.
If I already have the username and password, how do I log into a website, for example this one, using swift code.
This other SA question seems to solve the problem well: How to log into web site using uiwebview with swift?
The way I am trying to solve this issue is by creating a new View Controller and adding a Web View on to it with access to the website. There's a post here Get HTML from WKWebview in Swift that could help as you are using Swift, but without any detailing of your code this issue can't be solved completely. My solution is a bit unorthodox and frankly "bad coding", but it should in theory function well and I have seen other responses which do it similarly. Also, I would revise your question and try to make it more formal/informative so everyone could have a better chance at helping you out.
Good Luck!
Edit: Reviewing a different response
The easiest way to do this as mentioned by one of your comments would be to see if the Website you are using has an API. I used a course on Udemy which explained their functionalities if you need one. I would recommend looking at the Cocoa Pod Alamofire and seeing if it could help you (perhaps in conjunction with SwiftyJSON).
Side note:
The reason why I am not using Alamofire for my project (one similar to yours) is because I could not find an accessible API.

signing pdf using itextsharp 5.4.4 - example

Can someone supply an example or a link to an example that signs an existing pdf using itextsharp 5.4.4? Ideally keeping pdf/a conformity of the pdf? Thank you.
Edit: I understand the question looks as if I did not use google etc. BUT, new versions of itextsharp contain completely rewritten code for signing as well as other functions, making the existing examples non-functional. Also, itextsharp started using different names for methods eg. instead of createSignature one has CreateSignature, instead of getSignatureAppearance one seems to have SignatureAppearance etc. making the port from java examples a real nightmare. Also the samples in the source code itself are in java not c#. There is really nowhere else I can go.
Please read http://itextpdf.com/book/digitalsignatures
The examples are in Java, but they were also ported to C#. You can find the C# examples here. I didn't vote your question down, but... the first place to go when you have a question about iText should probably be http://itextpdf.com
The book I refer to (I'm the author) as well as the new examples are on the learn page.

facebook scraper stops reading my meta data [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Facebook won’t share a link to my site
I have 2 websites that fail to show an image when pasted into facebook. So I went to the facebook object debugger and compare what the scraper sees to what view source sees.
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fvspwebandvideo.com%2F
Both of my failing pages dies on the line:
Because it gives no error, it just stops reading at that point, I am clueless as to what to try.
Any ideas? I wondered if the title tag having html entities would have an effect.
paxtonsgrill.com fails as well, but allaroundloveland.com works. All 3 are wordpress sites, but I am a PHP developer so if I can figure out what is wrong, I can most likely fix it.
Thanks
The problem is with your site's Charset.
If you click on See exactly what our scraper sees for your URL link on their page, You should notice their scraper breaks at <link rel="alternate" type="application/rss왩"> (After rss its actually a + on your site) and checking your site's source code, I see you have utf-7 charset.
So i did a quick test and i can confirm its the character encoding issue. Just change it to utf-8 and everything should be working fine.
Also if you check your allaroundloveland.com site's source code, you can see it has the right charset but whereas your other sites have wrong charset (Idk if you added that yourself for some reason? but their scrapers are breaking with that charset).
Hope this helps and let me know if its working for you.

Access to hyperlink in a pdf(iPhone)?

I am working on a small app, which can open a pdf. My question is, if it is possible to access a hyperlink from a pdf? Because when am trying to click on hyperlink nothing is happening and it's not redirecting me to the link. I tried searching a lot but didn't got any luck on this. Am expecting a quick response as my work is getting delayed because of this issue. If it's possible then what would be the approach? Right now am using UIWebView to open the pdf. Any sample app or code will be of great help.
Thanks for your time .
The only way I know is to use a third party library (or perhaps parse the PDF yourself), find the links, get their rects and catch user taps and compare that to the list of link/hyperlinks/gotos for that particular page.
Unfortunatelly - nothing in the SDK that can help. You can search for a opensource pdf library, like muPDF for instance.
There is a reason why not many applications have that functionality :D