Answered
I have created a PDF package with Adobe Pro 8 and need to link to a specific file in the package from a web page. The package contains the main document and 5 appendixes. I need to have an html table of contents with a link to all 6 files in the package. How do I code the html link to do this?
Any help is much appreciated!!
A file that is embedded another PDF, can be referernced with a Destination inside the encapsulating PDF, i.e. the package cover file. If you have advanced developer tools you could create a named destination for this. Named destinations have the wonderful advantage of being able to be used in an URL. Unfortunately this is not an option availible to most people.
From Acrobat's user interface you can create a Bookmark Destination that points to an embedded file. When you create the bookmark, manually add a Goto View action and use the "Set Link" dialog to set the destination. If you follow this methodology you will need to pass the name of the bookmark into the PDF in the URL (the link on the HTML page), by using the standard query string syntax. Then you'll need a document level script to parse the bookmark out of the URL and execute the bookmark.
Not exactly easy, but that's because Adobe didn't provide a standard process for it:( The easiest route might be to find someone who can create named destinations that point to an embedded file.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script