problems with jsp and PDFBox
If any linux users have experience with PDFBox and jsp I could really use some help. I have the following program:
String inputFile = "/www/tomcat/webapps/courtscan/OH/demo/documents/2009/1-60.pdf";
String outputFile = "/usr/local/apache/htdocs/new.pdf";
PDDocument doc = PDDocument.load( inputFile );
doc.save( outputFile );
Simple, really, but it doesn't work. The output file created won't open in Acrobat and gives an "Insufficient data for an image" error message. It does create the file, though not the same size as the original. I can't see anything wrong with the code.