-
1. Re: WebBrowser.Document returns null when loading a pdf
Test Screen Name Jul 4, 2012 5:44 AM (in response to VKP1)You cannot use browser JavaScript to reach through to Acrobat JavaScript. They are completely isolated from each other by design.
So I suspect the absence of "document" is normal - there is no HTML document. That example is not about PDF.
-
2. Re: WebBrowser.Document returns null when loading a pdf
VKP1 Jul 4, 2012 11:09 PM (in response to Test Screen Name)Do you have any suggestion to get the current page and number of pages for a pdf document with Acrobat Reader installed so that I can I check whether the scrollbar has reached the end of the document
-
3. Re: WebBrowser.Document returns null when loading a pdf
Test Screen Name Jul 6, 2012 12:09 AM (in response to VKP1)I cannot see any way to do that from the browser. Acrobat JavaScript can discover the current page being viewed, but cannot communicate that with the browser.
-
4. Re: WebBrowser.Document returns null when loading a pdf
Bernd Alheit Jul 6, 2012 2:43 AM (in response to VKP1)The object HostContainer manages communication between a PDF document and a corresponding host container that
the document is contained within, such as an HTML page.
-
5. Re: WebBrowser.Document returns null when loading a pdf
Test Screen Name Jul 6, 2012 3:03 AM (in response to Bernd Alheit)Thanks. An interesting feature I'd missed. Bear in mind you cannot rely on it as the user may have turned off JavaScript or be on a Mac or using a different PDF viewer... if you were considering, for example, blocking an action until the user has finished reading a file.


