3/27/2011 10:18:04 PM
Title:
How to convert upload file into PDF in FLEX 4
hello everyone,
I have one doubt that how to convert a upload file into pdf in flex 4.If anyone knows plz help me.
Thanks & Regards,
K.priya.
3/27/2011 10:58:54 PM
what kind of files do you want to upload to get them converted to PDF
Rayan
Points: 700
Posts:0
3/27/2011 11:02:32 PM
to generate a PDF from inside FLEX the content should be present inside flash file . So if you are creating a webapplication (swf) file then . you first need to upload the image file to server and then load it inside flash and then you can use the free Alive PDF AS3 library to generate PDF files.
http://code.google.com/p/alivepdf/downloads/list
3/27/2011 11:05:23 PM
you can check the following links to create PDF files using Flex, Flash Builder, Flash or Adobe AIR application
http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/
http://www.rogue-development.com/blog2/2007/08/alivepdf-flexair-example/
http://www.themidnightcoders.com/blog/2009/01/generating-pdf-documents-from-flex.html
http://blogs.adobe.com/mikepotter/2006/09/create_pdf_from.html
PRIYA
Points: 110
Posts:0
3/27/2011 11:59:32 PM
Thanks for the reply,
i want to upload pdf,doc,txt file formats and then i want to convert it into pdf.Any one have a idea.
3/28/2011 12:08:44 AM
PDF creating in actionscript is possible as far as the content is available inside flash. The content is converted to bitmap and sent for PDF conversion. Uploading files like DOC, PDF and Text and converting them to PDF can be accomplished using some third party tool on your server. You can just initiate uploading of files to server from flash and your server language like asp,php can do the rest of process to receiver the file save it and then launch the third party tool to convert the files.
Flash cannot read the DOC and PDF files in itself so it cannot convert it to PDF.
PRIYA
Points: 110
Posts:0
3/28/2011 12:28:32 AM
Thanks for the reply Rex,
Can u please specify which type of third party tool should by used for the above conversion?
3/28/2011 2:28:28 AM
you can find a lot of programs by simple google searching that can convert DOC to PDF.
http://www.google.co.in/search?q=convert+doc+to+pdf
But your choice depends upon the price and the features required. Your developers (asp, php, cgi, java) can decide better by using the trial version and see if they can get it working properly on there server.
PRIYA
Points: 110
Posts:0
3/28/2011 3:07:08 AM
Thanks for the reply,
may it possible to convert the uploaded file into pdf without third party involving?any one have an idea means plz suggest me.....
4/1/2011 12:16:30 AM
I don't see any any such possibility , reason being the amount of complexity involved into reading and converting different formats. Flash can create client applications which cannot open , load and save files at its own due to security restrictions. So such tasks become difficult.