Hi,
Marek Gibiec schrieb: > Hi, > > I'm new to using pdfbox, I downloaded the sources files recently and started > playing with them. > > Unfortunately, I was not able to run a single example. The one I'm > particularly interested in is ExtractText.java. > > After providing a local pdf file to the pdfFile variable and setting the > toConsole variable to true I get the following error: > > > > Exception in thread "main" java.io.IOException: Error: could not find >> resource 'Resources/PDFTextStripper.properties' on classpath. >> at >> > org.apache.pdfbox.util.ResourceLoader.loadProperties(ResourceLoader.java:112) >> at >> org.apache.pdfbox.util.PDFTextStripper.<init>(PDFTextStripper.java:162) >> at org.apache.pdfbox.ExtractText.main(ExtractText.java:224) >> Java Result: 1 >> >> > Any one could provide some hints what I'm doing wrong? Sounds like an incomplete classpath. I guess the "src/main/resources" directory is missing. As alternative test you could just drop your pdf in the "test/input" directory and run the "testextract" target with ant. This will extract all files in that directory to the target dir "test/output". BR Andreas Lehmkühler