coherentgraphics / cpdf-binaries

PDF Command Line Tools binaries for Linux, Mac, Windows
Other
581 stars 42 forks source link

Add/Edit/Delete Bookmark in an existing PDF #59

Closed soubhikchatterjee closed 1 year ago

soubhikchatterjee commented 2 years ago

Is it possible to Add/Edit/Delete Bookmark in an existing PDF and save those changes in the pdf file?

johnwhitington commented 2 years ago

Yes, absolutely. You can use the commands from Chapter 6 of the manual. First -list-bookmarks or list-bookmarks-json, then edit as appropriate, then use -add-bookmarks or -add-bookmarks-json with your edited list.