>
>
> It works but I have the same problem than PDFBox. I must manage x and y
> position (increment x and y when I add some text).
>

It appears that PDFDocumentGraphics2D is just a Graphics2D context.  Then
presumably you could pass it to the paint() method of any AWT or Swing
component to have that component paint itself to the PDF.   E.g. Just use a
JTextPane or a JTable, then pas the PDFDocumentGraphics2D object to their
paint() methods



> I have started to manage that with PDFBox and it works great (increment x
> when text is added, increment y when text is too long for the line, etc).
>
> I don't see the advantage to use PDFDocumentGraphics2D instread of using
> PDFBox PDPageContentStream.
> I'm afraid with FOP because:
>
> * PDFDocumentGraphics2D  is not documented. It seems that nobody (google
> tell me that)  has used PDFDocumentGraphics2D to create PDF from scratch.
>
One google search found some API docs.
http://www.jarvana.com/jarvana/view/org/apache/xmlgraphics/fop/1.0/fop-1.0-javadoc.jar!/org/apache/fop/svg/PDFDocumentGraphics2D.html

Possibly old, but that's what 10 seconds of research found.

Best regards

Steve

Reply via email to