I'm looking for a way to extract bookmarks and their associated anchors from pdf files.
Thank you in advance for any help or suggestions you may have.
I could be wrong, but I don't think exiftool can do this. I couldn't find this info in exiftool output of a pdf.
A quick search and it looks like pdftk (https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/) can do it with this command:
pdftk input.pdf dump_data Output output.txt
(output.txt is option, it will print to the command line if missing).
SuperUser (http://superuser.com/questions/276311/how-to-import-export-and-edit-bookmarks-of-a-pdf-file) answer with more options.
Thank you for the suggestion.
Indeed PDFTK does the trick. HOWEVER!
I'm tasked to clean the PDF files without harming the content of tables. If I export it with pdftk, then remove the metadata from the PDF, I can't import the data back, since the dictionary is damaged on the PDF. Therefore I need a method to erease the metadata without harming the dictionary. Do you know how to do this?
Quote from: bertalanimre on February 03, 2017, 03:57:43 AM
Therefore I need a method to erease the metadata without harming the dictionary. Do you know how to do this?
You answered your own question here (https://exiftool.org/forum/index.php/topic,8050.msg41123.html#msg41123).
- Phil