Skip to main content
Participant
October 29, 2018
Answered

split pdf by bookmark

  • October 29, 2018
  • 2 replies
  • 4450 views

I have an 800+ page pdf file with 21 bookmarks.  I want to print the whole thing, but have some indicator where the bookmarks begin and end so that I can insert tabs.  In this particular case there are no page numbers to go by, and going page by page is very tedious.  Therefore, I want to send the whole thing to the copier in one shot but be able to separate the bookmarks.  This can be done through slip sheets, offsetting (collating), or even breaking the document up into individual sections.  While I've never worked with JavaScript at all, let alone within Adobe - this appears to be my best option.  Does anyone have any idea?

This topic has been closed for replies.
Correct answer try67

That is much more complicated. You would need to write a recursive function

that iterates over all of the bookmarks in the file, executing each one and

then save the current number, execute the next one, save that number, and

extract the pages between them.

2 replies

alexandraFR
Participant
November 27, 2019

The AutoBookmark plugin from EverMap (https://www.evermap.com/autobookmark.asp) can print the bookmark titles on the associated pages. See the functionality titled "Printing Bookmark Titles on the Corresponding Pages".

try67
Community Expert
Community Expert
October 29, 2018

If there's only one level of bookmarks (or you only want to use the top-most level) then you don't need a script at all.

Use the Split Document command and select "Top-Level Bookmarks" to achieve it.

DanW8516Author
Participant
October 29, 2018

Yea I found that solution, however usually I need to split by all bookmarks, not just the top level.

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
October 29, 2018

That is much more complicated. You would need to write a recursive function

that iterates over all of the bookmarks in the file, executing each one and

then save the current number, execute the next one, save that number, and

extract the pages between them.