Hi,
Im looking for some advise, I have a large document that I have in indesign with lots of buttons that link to and from pages. Basically I'm developing a Touchscreen system for a company I work for and indesign is perfect for it.
What I'm concerned about is I have what is best described as a shopping cart system where users click on products and the item details and price are passed onto the order page inside the same pdf (all done with javascript). Its 81 pages in total and if I was to add another 30 pages (for example in the middle of the current indesign document) then export as a pdf and replace my older version. All of the work I do in acrobat will get messed up because I added new content to the document.
Is there anyway to either add the javascripts I have to the indesign document or update the pdf and have the pages carry the scripts with them when I change the page order.
Im sorry that was a bit long winded, but it the best way I could describe the problem. Hope it makes sense.
Thanks Po.
It sounds like you are having navigation problems? i.e., when you insert a new page it throws off the page numbers used by some buttons for navigation?
There is a way to deal with this. Don't use absolute page numbers for navigation. Instead, create uniquely named bookmarks for all of your pages. The standard Bookmark uses what's called a destination to navigate to a page. You can move the pages around all you want and the bookmark will always go to the same page.
Next write a Document Level function that finds and executes a named bookmark. Use this function from a button to navigate to a particular page. You're basically creating page names that will work regardless of where a page is moved. Page Replacement won't affect this method and when you insert new pages, just add new bookmarks.
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