I want to extract the page numbers of bookmarks from .pdf files. I need to be able to pass filename and it should yield:

Bookmark    Page Number
loophard    3
leetfart    45
seedmart    68

as output that can be used in a script.


  1. Must run on Windows
  2. Must be automatizable
  3. Must be free
  4. Ideally lightweight & fast

I found my software in this answer. I was able to construct the .bat script:

java -jar jpdftweak.jar "in.pdf" -savebookmarks "out.csv"

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.