java - javax.imageio.IIOException: Error 2 when printing a PDF that uses CCITTFaxDecode compression in PDFBox -


I am using PDF to use PDF and print (we are using Java's PDF renderer , But CCITFxDecoded compressed PDFs, so we switched). However, PDFs are all printing in the form of blank pages. When I step through the PDFBox code, I get this code in PDCcitt.java:

  Public BufferedImage getRGBImage () throws IOException {BufferedImage retval = null; InputStream tiff = new TiffWrapper (getPDStream (). GetPartiallyFilteredStream (FAX_FILTERS), getCOSStream ()); Try {retval = imageIO.read (TIFF); } Hold (exception e) {log. Terror (E, E); } Finally {if (quarrel! = Null) {tiff.close (); }} Return returns; }  

This happens during the call of imageIO.read () where this secret error is thrown: javax.imageio.IOIOException: Error 2 I do not know what this means, And what once did he try to find it online cat? Anyone tells about this function, what is the error?

If you use Eclipse, you can use the Z + ZEclipse plugin to decompiled code To browse through the jar of image. This will give you an indicator to start searching because of the error.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -