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/