On Wed, 11 Jul 2001 22:14:11 Randall Parker wrote:
> I'm intending to try to use Batik and FOP to convert graphics drawn with
> java.awt.Graphics2D to PDF, SVG, and
> PNG. I'm especially interested in generating PDF.
>
> The relevant classes appear to be:
> org.apache.fop.svg.PDFDocumentGraphics2D
> org.apache.fop.svg.PDFGraphics2D
> org.apache.fop.svg.PDFTranscoder
> org.apache.fop.svg.PDFDocument
There is no "org.apache.fop.svg.PDFDocument".
They are the following:
- PDFGraphics2D
used for drawing onto a Graphics2D into an existing pdf document, used
internally to draw the svg.
- PDFDocumentGraphics2D
used to create a pdf document and inherits from PDFGraphics2D to do the
rest of the drawing. Used by the transcoder to create a standalone pdf
document from an svg. Can be used independantly the same as any Graphics2D.
- PDFTranscoder
used to transcode an svg document into a standalone pdf, via
PDFDocumentGraphics2D.
> org.apache.batik.svggen.SVGGraphics2D
for creating an svg document by drawing into a Graphics2D.
> Questions:
>
> 1) I've seen these paths used in discussions on this list. But they are
> not in the source downloads. Are they old
> package paths for old versions that are no longer used?
> org.apache.svg.PDFDocumentGraphics2D
> org.apache.svg.PDFTranscoder
These package and files never existed.
The files are new not old.
> 2) Should I be trying to use the release versions of Batik and FOP? Or
> nightlies?
> Its my impression from reading the lists that important fixes have
> been getting done in this area. I don't need my
> app to be stable enough for production as I'm still developing myself. So
> it makes more sense to me to be on the
> bleeding edge reporting and even debugging what happens in the latest
> versions of the relevant FOP and Batik
> classes so that they work as well as possible in their future versions.
> So does it make sense to go with the recent FOP nightlies? Kinda seems
> that way to me.
You do need the latest FOP at the moment, a number of important changes
have been made. You also need the current batik for proper integration.
> 3) Can one use the recent nightlies of Batik with the recent nightlies of
> FOP? Or does Batik need to be customized
> to be workable with FOP?
As above. Need latest.
> 4) What's the longer term plan with Batik and FOP integration? Will some
> of the code for doing these things be
> shifted btw FOP and Batik?
The main point is that the PDFGraphics2D requires the PDF creation code,
which is in FOP. Unless this code is moved I don't see why the
PDFGraphics2D should be moved.
Hopefully that has answered all you questions.
Keiron.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]