Open pdf in flash player 10

倖福魔咒の 提交于 2019-12-01 13:53:53

问题


I need to open a PDF in flash player 10. The swf will not be running in a browser and there will not be an adobe reader program on the system. I need to know if its possible to open a PDF without converting it in any way, in the flash player. I've searched google for countless hours and nothing has come up, only conversion software and code to open it in a browser.

Thanks, Jordan


回答1:


Read this Article.

http://va.lent.in/blog/tag/pdf2swf/

It goes into great detail of the research and limitations of PDF with ActionScript




回答2:


If this won't be running in the browser, how will it be running? As a stand-alone .swf file? Could you run this as an Adobe AIR application? AIR does support rendering of PDF content.




回答3:


No, it's not possible to view a PDF in Flash without either converting the PDF ahead of time to a flash format, or using an external PDF reader.

It may be possible to port some opensource PDF reader to Flash, maybe using Alchemy, but this will be a long and hard project, not something you could quickly throw together.




回答4:


There an other alternative, read PDF bytes and render it with AS3. Few libs already exist (on http://code.google.com):

  • purepdf (with org.purepdf.pdf.PdfReader)
  • as3-pdfreader (with org.pdfbox.pdfparser.PDFParser)

These PDF parsers don't support all avaiable PDF format's functionalities and I think you can't handle it with the same easiness of AIR integrated PDF reader (througt flash.html.HTMLLoader).



来源:https://stackoverflow.com/questions/2977637/open-pdf-in-flash-player-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!