These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Automate Bookmark Creation

harmsworthk
Registered: Mar 29 2011
Posts: 2

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

My Product Information:
Acrobat Pro 9.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There are two ways to create a bookmark.

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

harmsworthk
Registered: Mar 29 2011
Posts: 2
Hi Thom,

Thank you for the information,I will to do a bit of research in order to implement and test your solution but ill let you know either way.

Many Thanks
Karin
sandra421
Registered: Apr 4 2011
Posts: 1
Bookmark with the http://www.alivebookmark.com/download.php link!!!
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There are many third party tools for creating and manipulating bookmarks. Do google search on "Create PDF Bookmark".

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
That application appears not to add bookmarks to a PDF or manage bookmarks within a PDF.

George Kaiser