Previous | Next | (P-PDF) What's Wrong with my PDF?
Topic: jsp PDFBox Insufficient data for an image
Conf: (P-PDF) What's Wrong with my PDF?, Msg: 170231
From: mfoley
Date: 5/15/2009 06:25 PM
not sure if I should post here or 'developers' ...
I have a simple jsp 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();
I runs w/o error, creates the new.pdf file to not quite the same size as the original, but when I attempt to open it with Acrobat I get "Insufficient data for an image". I have been told that the file is readable using xpdf, but I can't confirm this myself. This is an urgent problem!