Flex/AIR/HTML PDF scriptable viewer
I've written a PowerPoint-like application in Flash, and now our c开发者_JS百科lient would like to view the speaker notes (a PDF file) on a separate screen while using the application. What I would need is a separate application/html page which can show the PDF and programmatically change page when the master slide changes.
Is this possible?
If so, is it easiest to go with a html page + javascript or a Flex/AIR app?
It needs to be done without changing the PDF's, since there are 600+ files that need to be viewable.
You can embed PDF's in adobe AIR using the html renderer. I've never done it myself, but there are some good answers here: How do I display a PDF in Adobe Flex?.
There is no way to embed directly a PDF into a Flash application (there is no rendering engine in AS for that). The Flash/Flex application are using a trick for rendering PDF (a floating HTML frame which does the rendering using Acrobat plugin). So in your case the HTML/JS approach is the right one, no need for Flash.
I do not know if you can scroll the PDF using the internal JS api, but I suppose you can. It is possible to send events from the browser (read this link) so you will need to read the Acrobat SDK documentation in order to find how to scroll pages.
精彩评论