Hi,

On 08/12/10 11:30, Toeroek, Laszlo (EXT) wrote:
I've been trying to do text extraction under windows xp. I downloaded
pdfbox-app-1.3.1.jar and typed:

java -jar pdfbox-app-x.y.z.jar org.apache.pdfbox.ExtractText
    mypdf.pdf mytext.txt

Use the following command:

    java -jar pdfbox-app-1.3.1.jar ExtractText ...

This will start up a generic PDFBox command line tool that uses the first command line argument (in this case "ExtractText") to select which utility tool to run.

You can also invoke the ExtractText or other utility classes directly like this:

    java -cp pdfbox-app-1.3.1.jar org.apache.pdfbox.ExtractText ...

Note that now we're using the pdfbox-app jar as just a normal classpath component instead of as a runnable jar, so you need to explicitly specify the full name of the main class.

BR,

Jukka Zitting

Reply via email to