PDFBox comes with a series of command line utilities. They are available as windows binaries and as standard Java applications.

In order to run them as java applications you need to add the following jars to your classpath

  • %PDFBOX_HOME%\external\log4j-1.2.9.jar
  • %PDFBOX_HOME%\lib\PDFBox-0.X.X.jar

PDFBox uses log4j for logging, if you do not set up log4j then you will get a warning like this

log4j:WARN No appenders could be found for logger (org.pdfbox.util.ResourceLoader).
log4j:WARN Please initialize the log4j system properly.

See the log4j documentation for more information on how to set up log4j.

In order to run them as window applications you will need to have the .NET framework installed and add %PDFBOX_HOME%\bin to your path.