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

1 Answer 1


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 agree to our terms of service and acknowledge you have read our privacy policy.

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