I seems that you got an installation file from a CTAN mirror that hadn't yet updated to TL 2011. Redownload it and try to be more lucky the next time (most mirrors should have updated by now).
Conversely, when you get the error message
the local installation
and the repository being accessed are not compatible:
local: 2011
repository: 2010
then just restart the installation process until you hit an updated mirror.
In addition to Heiko’s answer and just for convenience (Windows only):
Create a file pax.bat
(or pax.cmd
or what ever you prefer instead of pax
) under the bin
subfolder of your local texmf tree. Under MiKTeX you perhaps first need to create one: Create a local texmf tree in MiKTeX.
Now the preferred variant: Executing the perl file (an installation of a Perl distribution is necessary):
Edit pax.bat
, adjust paths to your settings
@echo off
SETLOCAL
set CLASSPATH=C:\PDFBox\lib\PDFBox-0.7.3.jar;%CLASSPATH%
perl C:\MiKTeX\scripts\pax\pdfannotextractor.pl %*
You could even leave out the set CLASSPATH
line, if you’d create a path <localtexmf>\scripts\pax\lib
, put PDFBox-0.7.3.jar
in it and refresh the filename database (fndb).
Then on the Command Prompt you can call pax FileWithBookmarks.pdf
or pax --debug FileWithBookmarks.pdf > paxdebug.log
. This assumes, that there is no other pax.exe
or similar on the system path, otherwise always make your call with pax.bat ...
.
Executing java directly is a bit more complicated:
Again edit pax.bat
and adjust paths to your settings
@echo off
SETLOCAL
set CLASSPATH=C:\PDFBox\lib\PDFBox-0.7.3.jar;C:\MiKTeX\scripts\pax\pax.jar;%CLASSPATH%
java pax.PDFAnnotExtractor %*
Note that pax.jar
was added to the classpath. I prefer to set the environment variable CLASSPATH
, but the command line option -classpath
, or short -cp
, works as well, as shown by Heiko.
Best Answer
I could solve the problem by installing Ghostscript.
If you are using Windows, then Perl and Ghostscript does not come along with that. If you want to crop a pdf using
pdfcrop
, then you have to install Perl and Ghostscript explicitly along with Tex. These softwares could be downloaded fromhttps://www.activestate.com/activeperl/downloads https://www.ghostscript.com/download/gsdnld.html