View Single Post
Old 06-22-2022, 06:05 AM   #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 Get list of sections to add bookmarks?

Hello,

I'd like to add bookmarks to an existing PDF that has none.

Is there a way to parse a PDF and extract its structure into a text file, which I could then feed to cpdf?

Code:
cpdf.exe -add-bookmarks bookmarks.txt input.pdf -o output.pdf
Thank you.

---
Edit: Since each kind of title (H1, H2, etc.) are formatted in a specific way, it might be possible to find all objects that match (font + size).

https://resources.infosecinstitute.c...sic-structure/

Last edited by Shohreh; 06-23-2022 at 11:55 AM.
Shohreh is offline   Reply With Quote