Previous | Next | (P-PDF) Developers
Topic: Add Bookmarks Programmaticly
Conf: (P-PDF) Developers, Msg: 32909
From: cmermukhtar
Date: 1/17/2002 12:35 AM
I have also been looking for such a tool for long but could not find one. Finally we developed an inhouse tool to add bookmarks to pdf based on table of contents values and/or font and style selection. But due to a tremendous variety on TOC style and font variations the tool has been built around some business rules. Ofcourse, as with other tools, ours has also some limitations. Some commercially available tools/plugins (like Bookmark by example from http://www.ambia.com/compose.asp) require you to provide some manual input on each of the files. Ours is an automated tool that adds the bookmarks based on some predefined settings.
If you are interested to do it programitically, you will have to first download some API that would help you read the pdf file, then based on the tokens that you will receive, you will have to search for particular pages etc to add to bookmarks. The API that we have used is PrepTool is from Glance (www.glance.ac). This API is reasonably good but has some limitations too. The other option could be that instead of using some API (with inherent one or the other limitation), you may use the Acrobat SDK but that will require a great level of programming along with thorough knowledge of PDF structure itself. I haven't used CAcroPDBookmark and have no idea about it.
Regards,
cmer.
On 1/5/2002 3:56:00 AM, ReaderRoss wrote:
>I need to find a way to add
>bookmarks programmaticly to a
>PDF, as the title suggests.
>I've looked at CAcroPDBookmark
>but it only seems to have a
>way to get a bookmark and then
>delete it. If anyone could
>show me some code, point me in
>the right direction, or clue
>me in on where I could find
>some data on adding bookmarks
>I'd be very appreciative.
>
>Thanks in advance,
> Jonathan Ross