Borisvl / JBIG2-Image-Decoder

A fork of JPedal's JBIG2 library
Other
30 stars 24 forks source link

Errors when trying to rednder some type of PDFs #1

Open IskanderMustafin opened 12 years ago

IskanderMustafin commented 12 years ago

When try to render some types of PDF I always get an exception.

Please, fix this bug.

Error stack-trace:

java.lang.IndexOutOfBoundsException: bitIndex < 0: -1152

   at java.util.BitSet.get(Unknown Source)

   at org.jpedal.jbig2.image.JBIG2Bitmap.getPixel(Unknown Source)

   at org.jpedal.jbig2.image.JBIG2Bitmap.combine(Unknown Source)

   at org.jpedal.jbig2.image.JBIG2Bitmap.readTextRegion(Unknown Source)

   at org.jpedal.jbig2.segment.region.text.TextRegionSegment.readSegment(Unknown Source)

   at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegments(Unknown Source)

   at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.decodeJBIG2(Unknown Source)
   at org.jpedal.jbig2.JBIG2Decoder.decodeJBIG2(Unknown Source)