Dealing with PDF documents

Add-in Express™ Support Service
That's what is more important than anything else

Dealing with PDF documents
 
happynomad




Posts: 2
Joined: 2010-05-05
I made a simple IE add-in that needs to figure out the title and URL of the currently-viewed page. For regular HTML pages, this information is available from ADXIEToolbarModule.HTMLDocumentObj, by casting it to mshtml.HTMLDocument and looking at its "title" and "url" properties. When a PDF document is displayed, however, the cast fails. So my question is, how can I get the title and URL of a PDF document as well?
Posted 05 May, 2010 11:15:42 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hello.

You can use the LocationURL property of the IE object model to obtain the currently opened web site.
Posted 07 May, 2010 08:12:11 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
By the way, when you open a pdf document in IE, the IEApp.Document property returns AcroPDFLib.IAcroAXDocShim interface defined in AcroPDF.dll.
Posted 07 May, 2010 08:48:39 Top