You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Bernd Brandstetter <bb...@freenet.de> on 2002/09/29 18:30:19 UTC

[PATCH] Linking to a specific page of an external PDF file

Hi again,

attached is a patch against today's FOP CVS which enables links to certain 
pages and named destinations within external PDF files.

The link syntax is the one proposed in "c01acrotip.pdf" by Adobe (don't 
have the URL at hand right now) for linking to PDFs from within HTML 
pages, i.e.
<fo:basic-link external-destination="foo.pdf#page=3">
links to the 4th page (note that page numbering in a PDF file starts with 
0) and
<fo:basic-link external-destination="foo.pdf#dest=some.named.destination">
links to "some.named.destination" in foo.pdf.

The code could probably be simplified, but this was me very first attempt 
to code in Java ;-)

Best regards,
Bernd


Re: [PATCH] Linking to a specific page of an external PDF file

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Bernd Brandstetter schrieb:
> Hi again,
> 
> attached is a patch against today's FOP CVS which enables links to certain 
> pages and named destinations within external PDF files.

Thanks, I'll take a look at this patch.

Please send your next patch (I hope there will be one ;-) to fop-dev

Christian