split pdf by bookmark

Community Beginner ,
Oct 29, 2018

Copy link to clipboard

Copied

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?

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

357

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

split pdf by bookmark

Community Beginner ,
Oct 29, 2018

Copy link to clipboard

Copied

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?

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

358

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 29, 2018 0
Most Valuable Participant ,
Oct 29, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 29, 2018 1
Community Beginner ,
Oct 29, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 29, 2018 1
Most Valuable Participant ,
Oct 29, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 29, 2018 0
Community Beginner ,
Nov 27, 2019

Copy link to clipboard

Copied

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".

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 27, 2019 0