Hi Konstantin, Your feature about creating PDF Document with Java code PDFDocumentGraphics2D (and without XML-FO), is exactly what we need in XDocReport <http://code.google.com/p/xdocreport/> for our converter Docx->PDF<http://code.google.com/p/xdocreport/wiki/XWPFConverterPDFViaIText>and ODT->PDF<http://code.google.com/p/xdocreport/wiki/ODFDOMConverterPDFViaIText>wich works with iText. We wish to give our code to Apache but problem is iText. So we need create PDF Document with Java code PDFDocumentGraphics2D.
I have tried to investiage to manage that (have a generic structured document which generate PDF Document with PDFDocumentGraphics2D ) but it's very very hard to code because of layout management. I'm waiting for developer which are interested to create a generic document like iText and I will be happy if we can share our skill (or perhaps working in the same project?) Regards Angelo Le 20 février 2012 18:25, Konstantin Preißer <[email protected]>a écrit : > 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] > >
