If you just need to print, and leaving PDF generation on the user side just
like most software do, why not using Flex native printing capabilities?
I've not used them in a while, but in 2009 they were good enough for
proffesional formatting a dinamic 20 page document, and quite simple to
use.

Just invoke the prepareForPrinting methods, add your objects, set your
bounding box scaling method, and you're done: the user is then presented
the printing dialog box, selects the preferred printer (or PDF document
writer if that's the case), and prints just like any other software.
There're plenty of samples online, and I can tell you that it just works as
expected, with really good results.

I think this approach is much simpler than:

1. Deciding a framework for PDF generation, and paying for it if it's not
free
2. Getting to know that framework
3. Generating the PDF
4. Downloading the generated PDF on the user side
5. Opening the generated PDF
6. And then finally print :)

Another possible approach: have you had a look at the "new" CSS3 print
media for HTML? They're quite well supported in all current browsers, with
really good results. You could easily generate just simple HTML code for
your docs, apply a CSS style sheet with print media definitions, and again
let the user decide if he/she wants to paper print it or generate a PDF.

Just my two cents ;)


On Fri, Nov 29, 2013 at 2:27 PM, Frank Dahmen <[email protected]> wrote:

> Hi,
>
> what is the state of the art for printing (or pdf generating) in a Flex
> Application (web)?
>
> Thanks
>
>

Reply via email to