Hi Theresa,
> -----Original Message----- > From: Theresa Jayne Forster [mailto:[email protected]] > Sent: Tuesday, February 07, 2012 1:43 PM > To: [email protected] > Subject: RE: Generating a PDF by drawing to PDFDocumentGraphics2D > > The usual way we create PDFs is via XML/XSL into a .fo file which is > then "compiled" into the pdf. > Thank you for your answer. Unfortunately, I don't know much about creating a PDF via XML/XSL into a .fo file, and I don't intend to use it, as I only need to generate a PDF dynamically by drawing to a Graphics2D object - which is why I'm using FOP's PDFDocumentGraphics2D. I know about Apache PDFBox where you can generate a PDF on the fly, but it seems that its API doesn't have support for drawing to a Graphics2D object. Another possiblility would be using the iText (R) library; however, it seems to have some problems with text positioning, and it's licence applies several restrictions on what to do with the product. Therefore, I'm currently using Apache FOP 1.0 to generating a PDF by drawing to a PDFDocumentGraphics2D, which seems to work pretty well. The only problem I'm currently having is how to embed Fonts into the PDF, so that I also can use other characters which are not available in the PDF's included fonts (or e.g. change the Font charset, so that other Unicode characters are available). Do you have an idea if this is possible? Thanks! Best Regards, Konstantin Preißer --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
