Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Printing in Adobe AIR - Standalone PDF Generation

Is it possible to generate PDF Documents in an Adobe AIR application without resorting to a round trip web service for generating the PDF? I've looked at the initial Flex Reports on GoogleCode but it requires a round trip for generating the actual PDF.

Given that AIR is supposed to be the Desktop end for RIAs is there a way to accomplish this? I suspect I am overlooking something but my searches through the documentation don't reveal too much and given the target for AIR I can't believe that it's just something they didn't include.

like image 960
Robert Avatar asked Sep 10 '08 03:09

Robert


People also ask

How do I print a PDF from my macbook air?

Steps to print a PDF on a Mac.With the PDF open, click File and select Print or press Command+P. In the Print dialog that opens, make sure your printer is selected. You can view the PDF in the preview window and adjust your settings. Click Print.

Why can't I get my PDF File to print?

The file might have downloaded incorrectly or incompletely the first time. Use another printer. If your printer is on a wired or wireless network, print the PDF file from a non-networked printer. Move the PDF file to your computer's hard drive, and then print again.


2 Answers

There's AlivePDF, which is a PDF generation library for ActionScript that should work, it was made just for the situation you describe.

like image 86
Theo Avatar answered Sep 19 '22 00:09

Theo


Just added a Adobe Air + Javascript + AlivePDF demo:

This demo doesn't require flex and is pretty straight forward.

http://www.drybydesign.com/2010/02/26/adobe-air-alivepdf-without-flex/

like image 26
Ari Ugwu Avatar answered Sep 22 '22 00:09

Ari Ugwu