You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Keiron Liddle <ke...@aftexsw.com> on 2002/12/02 09:59:25 UTC

Re: Using Apache FOP to create multiple-page PDFs using PDFDocumentGraphics2D

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: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Using Apache FOP to create multiple-page PDFs usingPDFDocumentGraphics2D

Posted by Oleg Tkachenko <ol...@multiconn.com>.
jcplerm wrote:
> 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:
Could you please save it in bugzilla as enhancement? Otherwise it's going to 
be lost.

PS. Don't forget to start bugzilla entry summary with "[PATCH]".
-- 
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Using Apache FOP to create multiple-page PDFs usingPDFDocumentGraphics2D

Posted by jcplerm <jc...@ameritech.net>.
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" <ke...@aftexsw.com>
To: "FOP" <fo...@xml.apache.org>
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: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>

Re: Using Apache FOP to create multiple-page PDFs using PDFDocumentGraphics2D

Posted by Alex McLintock <al...@OWAL.co.uk>.
>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?


It probably isn't what you wanted to hear but you could possibly duplicate 
the image several times and possibly use SVG clipping on each one - but 
clip to a different region each time.

Assuming clipping is working....

Alex




Openweb Analysts Ltd, London.
Software For Complex Websites http://www.OWAL.co.uk/
Open Source Software Companies please register here 
http://www.OWAL.co.uk/oss_support/


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org