另外我用Eclipse运时,出了警告:
log4j:WARN No appenders could be found for logger (org.pdfbox.pdfparser.PDFParser).
log4j:WARN Please initialize the log4j system properly.
private static void usage()
{
System.err.println("Usage: java org.pdfbox.ExtractText [OPTIONS] <PDF file> [Text File]\n -password <password> Password to decrypt document\n -encoding <output encoding> (ISO-8859-1,UTF-16BE,UTF-16LE,...)\n -console Send text to console instead of file\n -startPage <number> The first page to start extraction(1 based)\n -endPage <number> The last page to extract(inclusive)\n <PDF file> The PDF document to use\n [Text File] The file to write the text to\n");
System.exit(1);
}
static Class class$(String x0)
{
try
{
return Class.forName(x0);
}
catch(ClassNotFoundException x1)
{
throw new NoClassDefFoundError(x1.getMessage());
}
}