Hi all - I've created a PDF via Livecycle, and I want to be able to link to different locations within the PDF in question. I'm basically going to have a table of contents at the top of the PDF, and when users click on the various topics, they will be routed to the topic they click on.....how do I do this in a PDF? Is there an example somewhere, or example code?
I've used the following to go to the tops of the various pages....
xfa.host.currentPage = 2;
.....but what I'm looking for is something more specific, namely how to go to specific sections within the various pages of the PDF. Thanks in advance for your help!
Steve
Something else you can do is use the "xfa.layout.pageContent" and/or the "xfa.layout.page" functions to identify the physical location of a form item you want to navigate to. Then use the "event.target.viewState" object to set the page view exactly the way you want.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script