Reputation: 5648
How to make a pdf viewer in flash?
Upvotes: 2
Views: 2482
Reputation: 1388
This is an example of an HTML 5 web application that is a PDF viewer (you'll need to open it with the latest version of your browser):
It is based on the PDF.js project
and mainly uses javascript. Javascript and Actionscript are quite similar (both being derived from ecmascript). So if you can successfully port the PDF.js to Actionscript, you should be able to develop a PDF viwer in flash.
Upvotes: 0
Reputation: 1393
Use PDF 2 SWF Tool and then present the swf with Flexpaper.
Works Good in Flash not soo good in Air right now. They bring a different Library Package for Flex which must have some bugs.
Upvotes: 0
Reputation: 8701
The thing is that you can't open PDF files directly inside Flash player. So, a workaround that's usually done by Flash PDF viewers (flipbook, etc...) is to convert the PDF pages on the server to separate PNG images and load those into flash.
You can find a number of services that does this automatically, for example this PHP class might be useful if you want to implement such a solution on your own.
Upvotes: 4