Hi There,
I would like to automate the creation of bookmark's in a multiple page pdf, where the bookmark's come from information in the pdf.
The data is "printed" from an access report and is not taken from a scanned image.
On every second page in the same area there is a heading called "Cost Centre:" after which there is a five digit number which are all different. I need the bookmark to be search for the five digit number and create a bookmark on every change.
I realise there are a number of posts relating to this topic, which I have read and not made much sense of. Unfortunatly I am technically challenged but any help that can be given will be of great benefit to me.
Please let me know if you require any further infromation.
Many Thanks
Karin
1) use the Bookmark.addChild() function.
2) call the "NewBookmark" menu item.
In the first method is pure JavaScript. The new bookmark has a JavaScript Action, not a page destination. To make the bookmark go to a page, the script has to be set to something like: this.pageNum = 3;
The second method is exactly the same as the user selecting the new bookmark menu item. The destination of the new bookmark is page currently displayed to the user. With this method the script has to search for the newly created bookmark to set it's label, and to sort it.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script