This content has been marked as final.
Show 6 replies
-
1. Re: ***PRINTING FROM AIR/WEBKIT***
jerrybg7 May 10, 2008 11:07 AM (in response to Czajka)Was this topic ever responded to? I've been searching for three days for some solution to being able to print PDFs through AIR/Flex. The PDFs are generated elsewhere, simply listed in a datagrid and previewed through HTML container, but I need to print them as documents, not as containers, screenshots, or renderings.
Can this be done using LiveCycle? BlazeDS? Some other method?
I would appreciate any response. -
2. Re: ***PRINTING FROM AIR/WEBKIT***
sbaldizz May 10, 2008 11:46 AM (in response to jerrybg7)You can interact air-html-pdf sending a message to acrobat to print the document.
Air must call a javascript in html that send a postmessage to acrobat that invoke a embedded javascript to print the document. The pdf must contain the script to allow communicate to/from the html container and the code to print it.
Search in the docs of flex the example to interact air with pdf.
Exists a bug (the adobe team never admit or resolved...) in the OSX version of AIR that cause a security warning on every post message... -
3. Re: ***PRINTING FROM AIR/WEBKIT***
jerrybg7 May 10, 2008 12:05 PM (in response to sbaldizz)Hi Sbaldizz,
Thank you for the quick response.
This will not work. These PDFs are coming from numerous sources and will not be embedded with AIR-specific javascript. Is this really the best solution? Printing documents is basic. This is a very small application on one computer, receiving PDFs from other sources. It logs them and should print them, nothing more.
Does Adobe provide some other technology that will aid this process? I don't even need to open the PDF, just point to it and print it.
There must be a better way. -
4. Re: ***PRINTING FROM AIR/WEBKIT***
sbaldizz May 10, 2008 12:51 PM (in response to jerrybg7)sorry but I don't known...
You can create a pdf with the embedded code that interact with air. the pdf open the request document, print it, and then close. -
5. Re: ***PRINTING FROM AIR/WEBKIT***
jerrybg7 May 10, 2008 1:06 PM (in response to sbaldizz)Thank you again.
Looks like a dead end. I may actually have to turn to Visual Studio for this project.
All the best,
Jerry -
6. Re: ***PRINTING FROM AIR/WEBKIT***
pauland May 19, 2008 3:50 AM (in response to Czajka)Printing from Flex/Flash/Air is a bit of an Achilles heel. You can find on the flexcoders/flashcoders forums plenty of discussion about printing.