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 ); out.print(doc.getNumberOfPages() ); doc.save( outputFile ); doc.close(); 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. |
All times are GMT -5. The time now is 05:00 PM. |