You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Ralph LaChance <Ra...@compuserve.com> on 2002/01/16 23:10:51 UTC

Printing from a servlet


Ra�l

(and others looking for help in printing via fop from a servlet)

Attached is an example which parallels (in fop version 0.20.2 RC)
         docs/example/embedding/FopServlet.java

This example is hardwired to send output to the default printer
similarly to the -print option in fop command line.

I have tested it with both kinds of input (fo and xml/xsl) on a standalone
servlet runner, but not on the apache servlet engine itself.

The test environment is WinNT4.0 with an HP printer.
I cannot vouch for this running under Unix.

Perhaps one of the committers would consider adding this to the RC ?

Someone a few months ago (Arved?) - suggested I round out the work on
Driver so that RENDER_AWT and RENDER_PRINT would work.  I've not
gotten to that, but perhaps this is almost as good....

         ' Best,
         -Ralph LaChance