Can I dynamically import pdf into swf?
Copy link to clipboard
Copied
Hi All,
I need to be able to dynamically import an external pdf file into my flash .swf and display it within a movie clip on the timeline. --with pagination. Is this possible with Flash CS4?
Thank you for reading. I have been out of the flash game for about a year now. However, a situation has arisen where I need to create a swf movie that loads an external pdf, paginates it, and displays it within a movie clip in the swf. Is this possible or will I be forced to only provide a hyperlink to the pdf?
Thank you so much for your time.
Pete
Copy link to clipboard
Copied
no.
but you can convert your pdf to a swf and load that.
Copy link to clipboard
Copied
Thank you for you help. Is it possible to convert a pdf to swf dynamically? If so, what technology? PHP or flash? Also, would flex help with any of this? Or is flex for a local environment?
Thanks again!!
Copy link to clipboard
Copied
you can create pdfs dynamically but i'm not sure it makes sense to talk about converting a swf to pdf dynamically because you can't create a swf dynamically.

Copy link to clipboard
Copied
For example, I use Print2Flash library to convert PDF to SWF dynamically. It is possible to invoke conversion from PHP, ASP.NET/C#, Ruby, C++ and other languages. There is a conversion API for this described here: Print2Flash APIs for programmatic conversion of documents to Flash or HTML and for controlling conve... You can take several samples from Print2Flash SDK demonstrating how to implement conversion from various languages. The SDK can be downloaded from Print2Flash - convert or print any printable document to Adobe Flash (SWF) file or HTML or SVG file ...
Copy link to clipboard
Copied
I insist on converting PDF to SWF. Here is a demo http://pdf-to-flash-magazine.com/play.html?dir=English-Brochure-for-kw, click "convert now" to make one yourself.
Copy link to clipboard
Copied
converting by software is an option if you don't mind.
Copy link to clipboard
Copied
You should be able to use getURL("pdflocationhere.pdf"); - but I believe thats totally dependent on how the users computer is set up. If they don't have Adobe Reader, it will probably fail, or will attempt to load the pdf within a modern browser that should have the reader plug-in. From my experience, when using getURL() within a projector, it will attempt to open the filetype based on that specific filetype's default opening program which is set in the OS.

