View Single Post
Old 12-29-2020, 07:06 PM   #1
Shohreh
Addict
Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.
 
Posts: 207
Karma: 304158
Join Date: Jan 2016
Location: France
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:	463
Size:	26.3 KB
ID:	184360  

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