pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Murray-Rust <pm...@cam.ac.uk>
Subject Error somewhere in jbig2/PDPixelMap
Date Thu, 23 May 2013 12:37:47 GMT
I am using V 1.8.1 (with my code on top and within Eclipse) to convert a
number of PDFs  (I suspect of vary variable quality) and get an error (see
stack). However when I rerun the job the error does not re-occur. I don't
think it's due to any particular file. I don't think it would be easy to
post the example. At present it's inconvenient rather than a showstopper,
but comments would be welcome.

Thanks

23-May-2013 13:22:43 com.levigo.jbig2.util.log.
JDKLogger info
INFO: Dimensions could not be determined. Returning read params with size
1x1
23-May-2013 13:22:43 com.levigo.jbig2.util.log.JDKLogger info
INFO: Globals not set.
23-May-2013 13:22:43 com.levigo.jbig2.util.log.JDKLogger info
INFO: JBIG2ReadParam not specified. Default will be used.
23-May-2013 13:22:43 com.levigo.jbig2.util.log.JDKLogger info
INFO: Globals not set.
23-May-2013 13:22:43 com.levigo.jbig2.util.log.JDKLogger info
INFO: Dimensions could not be determined. Returning read params with size
1x1
23-May-2013 13:22:43 com.levigo.jbig2.util.log.JDKLogger info
INFO: Globals not set.
3196 [main] ERROR org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap  -
java.io.EOFException
java.io.EOFException
    at javax.imageio.stream.ImageInputStreamImpl.readBit(Unknown Source)
    at
com.levigo.jbig2.SegmentHeader.readAmountOfReferredToSegments(SegmentHeader.java:222)
    at com.levigo.jbig2.SegmentHeader.parse(SegmentHeader.java:146)
    at com.levigo.jbig2.SegmentHeader.<init>(SegmentHeader.java:118)
    at com.levigo.jbig2.JBIG2Document.mapStream(JBIG2Document.java:193)
    at com.levigo.jbig2.JBIG2Document.<init>(JBIG2Document.java:115)
    at
com.levigo.jbig2.JBIG2ImageReader.getDocument(JBIG2ImageReader.java:317)
    at
com.levigo.jbig2.JBIG2ImageReader.createGrayScaleImage(JBIG2ImageReader.java:223)
    at com.levigo.jbig2.JBIG2ImageReader.read(JBIG2ImageReader.java:211)
    at javax.imageio.ImageReader.read(Unknown Source)
    at org.apache.pdfbox.filter.JBIG2Filter.decode(JBIG2Filter.java:86)
    at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:317)
    at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:237)
    at
org.apache.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:172)
    at
org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:231)
    at
org.apache.pdfbox.pdmodel.common.PDStream.getByteArray(PDStream.java:509)
    at
org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:185)
    at
org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:83)
    at
org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:554)
    at
org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:268)
    at
org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:235)
    at
org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:215)
    at
org.xmlcml.pdf2svg.PDFPage2SVGConverter.drawPage(PDFPage2SVGConverter.java:190)
    at
org.xmlcml.pdf2svg.PDFPage2SVGConverter.convertPageToSVG(PDFPage2SVGConverter.java:176)


-- 
Peter Murray-Rust
Reader in Molecular Informatics
Unilever Centre, Dep. Of Chemistry
University of Cambridge
CB2 1EW, UK
+44-1223-763069

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message