Unless you have an unpacked PDFBox in C:\PDFBox
, the CLASSPATH
is wrong. Instead of the directory, the .jar
file is needed: C:\PDFBox\PDFBox-0.7.3.jar
.
Neither C:\PDFBox\
nor C:\MiKTeX\scripts\pax\
need to be added to the system Path
variable.
The spaces in the argument for java
's option -cp
should not be a problem, because the Perl script uses the array form of function system
. But it can be tested:
java -cp "C:\MiKTeX\scripts\pax\pax.jar;C:\PDFBox\PDFBox-0.7.3.jar" pax.PDFAnnotExtractor FileWithBookmarks.pdf
Remarks:
- In Linux/Unix the path separator
:
is used instead of;
. - Project
pax
does not support newer versions ofPDFBox
. The supported versions are0.7.2
and0.7.3
.