Awesome - thanks for the pointers! On Fri, Oct 2, 2009 at 4:42 AM, Jeremias Maerki <d...@jeremias-maerki.ch>wrote:
> You can use Apache FOP's PDFDocumentGraphics2D to create PDFs. Granted, > it's a bit hidden among all that XSL-FO stuff but it works quite nicely > for most cases. We use the same code also for a Apache Batik Transcoder > which creates PDF from SVG. > > http://xmlgraphics.apache.org/fop/ > > http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFDocumentGraphics2D.java?view=markup > > On 02.10.2009 10:21:21 Andreas Lehmkühler wrote: > > Hi, > > > > Gesendet: Fr, 02. Okt 2009 Von: Todd Volkert<tvolk...@gmail.com> > > > Hi there, > > > > > > Are you guys at all interested in (or have you worked on) adding > support to > > > PDFBox to creating PDFs via calls to the Java2D API? Or vice versa -- > > > exposing a PDF class with a paint(Graphics2D) method that paints the > PDF to > > > a Graphics2D object? > > PDFBox already uses Java2D to convert pages of a pdf-document into an > image, e.g. to display a pdf with the PDFReader. > > If you are interested in that feature, have a look at > org.apache.pdfbox.pdfviewer.PageDrawer as a starting point. > > > > The other way around isn't used anywhere in PDFBox. > > > > BR > > Andreas Lehmkühler > > > > > Jeremias Maerki > >