Skip to main content
Participating Frequently
November 8, 2023
Question

Need Action Wizard to update Bookmarks and Split PDF

  • November 8, 2023
  • 1 reply
  • 8558 views

I have Adobe Acrobat Pro Adobe Continuous Release version 2023.006.20360 and Adobe Creative Cloud. I'm trying in either platform to create an Action Wizard that will take a PDF and edit the bookmarks to promote them all to Primary in order to split the PDF into multiple PDFs. The PDF itself is about 160+ pages and has 60+ bookmarks but the bookmarks are grouped into a hierarchy so I have to get the bookmarks updated to primary in order to split.

I have 2 issues here, I can't seem to find in my version a way to add an update bookmarks into the wizard, nor do I see a way to add split PDFs. I did find Split PDF as a custom tool but I don't see a way to add the custom tool into the action wizard. 

I also tried using a javascript to update the bookmarks, but even though it says it runs successfully it doesn't change anything in the document. 

Please help

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
November 8, 2023

You can use a script to move the bookmarks around, but not to split the file according to them (at least not in an Action). What code did you use, and what was the result of running it from the Console on a single file?

182129Author
Participating Frequently
November 8, 2023

For just the Bookmarks I selected New Action Wizard, on right changed the default to add folder instead of file, then on left in Choose tools to add: I selected More Tools added Execute JavaScript, unchecked prompt user, then added the code: 

var doc = this;
for (var i = 0; i < doc.numBookmarks; i++) {
var bookmark = doc.bookmarkRoot.children[i];
bookmark.primary = true;
}

When I run this I see it pull up each file as it finds them in the folder but none of them have the bookmarks updated when it says complete.

try67
Community Expert
Community Expert
November 8, 2023

Where did you get this code from?