View Single Post
Old 12-29-2020, 07:06 PM   #1
Shohreh
Zealot
Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.
 
Posts: 148
Karma: 192898
Join Date: Jan 2016
Device: none
Question [SOLVED] Tool to add ToC (bookmarks) to existing PDF?

Hello,

Some PDFs have no table of contents (bookmarks). Here's an example as shown in SumatraPDF.

Is there a software* to add one to an existing PDF file, ie. I don't have the original source?

Thank you.

* qpdf, cpdf, mutool, etc.

--
Edit: Should have checked the archives before asking

Just create a text file by copy/pasting the ToC (with a bit of regex, possibly), and run this command:

Code:
cpdf.exe -add-bookmarks bookmarks.txt input.pdf -o output.pdf
Attached Thumbnails
Click image for larger version

Name:	AB8FE459-DAD3-4ABF-B867-7907F483D8DA.png
Views:	374
Size:	26.3 KB
ID:	184360  

Last edited by Shohreh; 12-29-2020 at 07:27 PM.
Shohreh is offline   Reply With Quote