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 Lloyd McKenzie/CanWest/IBM <lm...@ca.ibm.com> on 2001/11/03 17:35:33 UTC

Re: insertion of "named destinations" into pdfs

Hi Matthew,

I was running into the same problem.  I've written an extension (similar to
the bookmark extension) that provides support for PDF Named Destinations.
I've also included modifications that allow references to a specific Named
Destination when linking to an external PDF.  (The code basically checks
for ".PDF#", and uses whatever follows the '#' as the named destination
within the target PDF.)

The attached files includes the additions/modifications to make it work, as
well as a chunk of HTML that can be added to the web-site list of
extensions.  (It includes details on how to use the extension.)

The diff files are comparisons against fop-0.20.2.  I did a quick check
through the CVS list archive and couldn't see any of the impacted files
that have changed since then, but no promises :>

Hope everyone finds this useful,


Lloyd

(See attached file: fop-pdfDestination.zip)

Lloyd McKenzie, P.Eng.              I/T Architect, IBM Global Services
Internet: LMCKENZI@CA.IBM.COM
PhoneMail: (780)421-5620          Internal Mail:AZ*K0R*1004 *EDM


fop-dev-help@xml.apache.org on 11/02/2001 05:46:10 PM
----- Message from "Matthew L. Avizinis" <ml...@gleim.com> on Mon, 29 Oct
2001 12:07:48 -0500 -----
                                      
      To: <fo...@xml.apache.org>    
                                      
 Subject: insertion of "named         
          destinations" into pdf's    
                                      

Hello,
I saw a brief discussion several (probably about six) months ago about this
topic and the outcome didn't seem clear to me whether or not fop supports
insertion of "name destinations" in pdf's (not bookmarks) so that it would
be possible to open a pdf to a specific location from either another
program
or another pdf.

As far as I can tell with the examples, newlinktest.fo and link.fo, it is
possible to bounce around within a document and to link to another
document.
However, it looks like it only links to the "top" of the file, not to some
destination in the middle of the file.  If it is possible, how would you
specify it?  Is there some functionality to fo:basic-link that I am missing
or is there something undocumented I am not aware of, or is this just not
implemented yet?

Thanks ahead for any creative suggestions.

   Matthew L. Avizinis <ma...@gleim.com>
Gleim Publications, Inc.
   4201 NW 95th Blvd.
 Gainesville, FL 32606
(352)-375-0772 ext. 101
      www.gleim.com <http://www.gleim.com>

=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed to
any third party without my permission, however keg parties are ok.  There
is
no intention to create any legally binding contract or other commitment,
like marriage, through the use of this email.