This content has been marked as final. Show 7 replies
I'd be interested in knowing how to do this as well.
In your Flex application, create an instance of FlexPrintJob, send your print job to a printer; In the print list, you may find a printer called "Adobe PDF" if your computer installed FlashPaper2. This so-called printer lets you save your print job as a PDF file and opens it in a PDF window, then, you may print the PDF in a real printer.
The only downside to using this approach is the need for the client to have an Adobe PDF printer setup. I'm not familiar with the FlashPaper2 module, what is that?
cutePDF is a free alternative
first thanx for the answers.
cutePDF is a nice program. but im not really searching for this solution.
i have some canvases stacked ontop of eachother
2 backgroundpattern (with alpha blend)
3 canvas with images and tekst.
i am looking for some kind of way to save it as a pdf on my server and give the visitor of my site an new browser screen with the created pdf in it.
maybe a function that changes the canvases into xml or php and than let php create the pdf or something?
The point is that it must work on its own and does not need installed stuf at client side.
I hope this gives a better idea of what i trie to do.
(sorry for my english)
You can always send an HTTPService "job" to a PHP page with any necessary parameters. Then your PHP page can generate the PDF file dynamically. Once it returns successful, you have the navigateToURL function (not sure if that's EXACTLY it, but it's close :D) to pop up a new browser window pointed to the newly created PDF.
Of course, you'd have to build your PDF generating PHP page to "replicate" the Flex Canvas you want. You wouldn't be able to easily port your Flex to your PHP page. But once you got your PHP page generating a good PDF file, you'd never really have to update your PHP page! :D
oh i see. hmmm. i get it now.
i have no experience with the data services side of flex... but my impression is that it handles things similar to what you are asking. You might be able to create whatever component you have to bitmapdata and send it back to the server. (maybe using serialization???)
then your server can do the conversion stuff. (ghostscript, imagemagick???)