FOP writes PDFs. For reading PDFs you might want to try pdfbox. pdfbox can use a PDF file or a FileInputStream for input and can output a PDF file or direct to a printer. I had some issues getting FOP to send output directly to a printer with it's direct print mime type, so I managed to get it to use the PDF mime and send output in PDF format to a FileOutputStream and use pdfbox to print it. What you're trying to do sounds a bit more complicated. The simplest way would be if you have source files to recreate the PDF in FOP, to start from scratch and rebuild it each time then add the address. If you must use a PDF which already exists, maybe pdfbox can help you deconstruct it.
________________________________ From: Martin Edge [mailto:martin.e...@intellimail.com.au] Sent: Tuesday, June 01, 2010 10:58 AM To: fop-users@xmlgraphics.apache.org Subject: Embedding PDF base into a FO document (at least for PDF output) Hey Guys, Trying to figure out the best way to manage embedding a PDF (allbeit source via an A4 flyer sheet, or a PDF of most standard sizes, full of a mixture of vector and raster graphics) in the output from FOP - I see there is a plugin that exists called 'PDF Image Support Plug-In for Apache FOP' on Jeremias' website.. My goal is to be able to use (for instance) - a base pdf with a sheet pre-prepared with text and graphics, and overprint an address on the document, is that something within the capability of the library? Or is there another way to achieve this goal ? Thanks Martin