Hi all. I patched the fop-0_20_2-maintain branch (21-01-2003, approx. 20:00 CET) to have named destinations. The patch allows to link to other PDF-Documents by the following syntax:
<fo:basic-link external-destination="handbuch-fop.pdf#dest=xyz">external link to named destination</fo:basic-link> <fo:basic-link external-destination="handbuch-fop.pdf#page=5">external link to page</fo:basic-link> This part is based on work by Bernd Brandstetter published recently in the fop-user-list. In addition, the patch allows to define named destinations by a new extension element with the following syntax: <fox:destination xmlns:fox="http://xml.apache.org/fop/extensions" destination-name="xyz" internal-destination="N40001A"/> The destination-name attribute must correspond to the value used in the link (dest=xyz above). The fox:destination elements must be children of the fo:root element. In addition, they must not be the last children, i.e. they should be placed right after the fo:root element opened. (Otherwise they get not processed for whaterever reason this is). This part is based on work by Lloyed McKenzie that was published in the fop-dev-list in November 2001. Two additional classes are neccessary: 1. The destination extension element (org.apache.fop.extensions.Destination) 2. The PDF element for the destination (org.apache.fop.pdf.PDFDestination) --Stefan
named-destinations.diff
Description: Binary data
Destination.java
Description: Binary data
PDFDestination.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
