you will problably will have to read the file binary. My understanding of pdf file is
that you can read them kind of like XML. you might want to create a class to parse the file xml for the file. and then maybe you can use alive pdf library to republish as pdf.
If you have the file full URL, then you can use an iFrame and I can provide options.
Please review this thread "Write a server-side file" for detail on displaying PDFs in a distributed architecture.
I have a simple process (am happy to publish it) to read any file into a ByteArray and identify the type-PDF. How can we display the PDF?
And please let me know what you learn.
Bruce please publish your process i would love to see it. Im always looking to learn.
Miguel and Rangrajan,
Fetching files depends upon the architecture. One system uses SOAP/WSDL decoded by Base64 into a ByteArray. Then we jump the SOAP header and parse the leading bytes to determine the file type.
What architecture does Rangrajan have? Is it just
user browser <-- server Flex web app
I have used browser <-- server Flex web app architecture.
Please publish your process. I am excited to see and learn your process.
browser <-- server Flex web app
Where is the PDF you want to display?
If on the user-side, then FileReference should open the file, but you cannot display it.
If you find the user-side file complete URL, then an iFrame should work.
If on the server-side then you can display the PDF in an iFrame.
For the iFrame, you can find open source (eg, display PDF as flashpaper) or use the supported Drumbeat Insight and purchase a lib or source code.
If someone answers my question, then I can publish an end-to-end solution.
more news as available,
Pdf file is on server side. Please guide and help me with code.
If you have the complete URL to the file; for example http://forums.adobe.com/filename.pdf
Although I have not used it, you can pass the URL to Drumbeat Insight iFrame
You can try their product, get prices for source code or library here: http://drumbeatinsight.com/products
They offer email support for their products.
You can make your own iFrame, with several sources. Here is some background.
Let me know if this solves your file issue.
I need to write a server-side app to listen to my web service, upload the PDF, then write a temporary file.pdf to the server,
before my web app can load the PDF into a web hosted iFrame.
Adobe needs to make this easy (and I even know some developers in the San Jose Adobe headquarters).