Actually, I managed to find a solution late last night that apparently works. It should be further refined by the FOP team, of course.
I am sending attached two files:
MultipagePDFDocumentGraphics2D.java:
Subclass of PDFDocumentGraphics2D.
Adds a method
"makePage" and others to enable
creation of multiple
pages.
TestPDFGen.java: Illustrates the use of
MultipagePDFDocumentGraphics2D.
It uses a combination of AWT clipping
and translation,
plus MultipagePDFDocumentGraphics2D
added methods
to achieve the result of multiple
pages. Basically, the same
AWT drawing is repainted, but on
different clipping areas
and PDF pages.
If you have any questions, please let me know.
Thanks,
Julio Lerm
Chicago, IL
----- Original Message -----
From: "Keiron Liddle" <[EMAIL PROTECTED]>
To: "FOP" <[EMAIL PROTECTED]>
Sent: Monday, December 02, 2002 2:59 AM
Subject: Re: Using Apache FOP to create multiple-page PDFs
usingPDFDocumentGraphics2D
> On Mon, 2002-12-02 at 03:40, jcplerm wrote:
> > Is it possible, by any means, to use PDFDocumentGraphics2D
> > (or any other FOP class) to generate a PDF document with multiple
> > pages, so that each page contains a slice of a larger graph created
> > using Graphics2D methods?
>
> Hi Julio,
>
> Not directly.
> It may be possible to subclass the PDFDocumentGraphics2D to achieve
> this.
>
> Could you give a brief outline of how such a class would work so we can
> add it to a to do list. This has been requested a few times and could be
> a useful addition.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
TestPDFGen.java
Description: Binary data
MultipagePDFDocumentGraphics2D.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
