I have a PDF file. I need the bookmarks in that file extracted to a text file or an Excel spreadsheet. I also need to validate the bookmarks from the large PDF file. How would I do that?
I have a PDF file. I need the bookmarks in that file extracted to a text file or an Excel spreadsheet. I also need to validate the bookmarks from the large PDF file. How would I do that?
Best Answer
You can use the CLI of jpdftweak to extract bookmarks in CSV format:
After validating and possibly modifying the bookmark data you could load it back into the PDF file with the following command:
The
-Xmx512M
Java parameter is optional but can help with processing larger PDF files that require more memory.You might want to read this related Q&A as well.