I have used PDF Transcoder for one page.
It works very well.
But what I am trying to do is create mulitple pages from 2D
graphics.
My test is to create a PDF document with three pages.
For each page I create a SVG Document per page.
Render the SVG document onto the PDF page.
I don't know how to control the pages using the PDF transcoder.
Also since this is for a print service for supporting 2 graphics,
I have to be careful about space, cause the document printing could
be 50 pages.
Any advice ?
Right now I am still fiddling with the Areas.
-----Original Message-----
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 09, 2003 10:19 AM
To: [EMAIL PROTECTED]
Subject: Re: PDFRenderer.
You just want to convert SVG to PDF? Then it's MUCH easier if you just
used FOP's PDF transcoder. The transcoder is a Batik plug-in that adds
PDF output support. The URL below is an example Java class I recently
added to demonstrate converting SVG to PDF using the PDF transcoder. The
PDF transcoder is included in Batik's current distribution (Version
1.5beta4). Just ask again if you need more help.
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/
ExampleSVG2PDF.java?rev=1.1&content-type=text/vnd.viewcvs-markup
Also look at this:
http://xml.apache.org/batik/rasterizerTutorial.html
http://xml.apache.org/batik/svgrasterizer.html
On 09.04.2003 14:06:17 Leet, Ethan C wrote:
>
> I am looking for suggestions ?
>
> I build a SVG DOM Tree.
>
> I would need to translate the SVG DOM tree into a FOP DOM tree,
> before I can run FOP right ?
>
> Please, any help would be greatful, I don't want to fiddle with
> anything if I don't need to.
>
> Thanks
>
>
> -----Original Message-----
> From: J.Pietschmann [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 08, 2003 5:41 PM
> To: [EMAIL PROTECTED]
> Subject: Re: PDFRenderer.
>
>
> Leet, Ethan C wrote:
> > Page.getBody().getMainReferenceArea().addChild(SVGArea);
>
> I highly suspect you'll have to add a block area and probably also a
> line area and ultimately add the SVG to the latter.
> You can check how a working area tree looks like by rendering a simple
> FO file with the SVG first to PDF (to check whether it works) and then
> as XML output.
>
> BTW why do you fiddle with areas? Building a DOM tree and running
> FOP on it should be much easier.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]