Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.2.2
-
Fix Version/s: 5.0.4
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:-
-
Salesforce Case Reference:
Description
The PDF does not render the following exception is thrown:
FINE: Error getting image by name: Im0
java.lang.ArrayIndexOutOfBoundsException: 1
at org.jpedal.jbig2.io.StreamReader.readByte(StreamReader.java:93)
at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.handleSegmentNumber(JBIG2StreamDecoder.java:504)
at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegmentHeader(JBIG2StreamDecoder.java:470)
at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegments(JBIG2StreamDecoder.java:225)
at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.decodeJBIG2(JBIG2StreamDecoder.java:134)
at org.jpedal.jbig2.JBIG2Decoder.decodeJBIG2(JBIG2Decoder.java:149)
at org.icepdf.core.pobjects.Stream.jbig2Decode(Stream.java:867)
at org.icepdf.core.pobjects.Stream.getImage(Stream.java:2131)
at org.icepdf.core.pobjects.Stream.getImage(Stream.java:2042)
at org.icepdf.core.pobjects.Resources.getImage(Resources.java:264)
at org.icepdf.core.util.ContentParser.consume_Do(ContentParser.java:1971)
at org.icepdf.core.util.ContentParser.parse(ContentParser.java:391)
at org.icepdf.core.pobjects.Page.init(Page.java:390)
at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1077)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
This user has also loggedPDF-278.
FINE: Error getting image by name: Im0
java.lang.ArrayIndexOutOfBoundsException: 1
at org.jpedal.jbig2.io.StreamReader.readByte(StreamReader.java:93)
at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.handleSegmentNumber(JBIG2StreamDecoder.java:504)
at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegmentHeader(JBIG2StreamDecoder.java:470)
at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegments(JBIG2StreamDecoder.java:225)
at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.decodeJBIG2(JBIG2StreamDecoder.java:134)
at org.jpedal.jbig2.JBIG2Decoder.decodeJBIG2(JBIG2Decoder.java:149)
at org.icepdf.core.pobjects.Stream.jbig2Decode(Stream.java:867)
at org.icepdf.core.pobjects.Stream.getImage(Stream.java:2131)
at org.icepdf.core.pobjects.Stream.getImage(Stream.java:2042)
at org.icepdf.core.pobjects.Resources.getImage(Resources.java:264)
at org.icepdf.core.util.ContentParser.consume_Do(ContentParser.java:1971)
at org.icepdf.core.util.ContentParser.parse(ContentParser.java:391)
at org.icepdf.core.pobjects.Page.init(Page.java:390)
at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1077)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
This user has also logged
We are moving away from the jbig2 implementation provided by jpedal and are moving to the Levigo library. The library is licensed under LGPA so we won't be distributing it with the OS bundle but if added to the class path ICEpdf will try to use it.
We licensed a special commercial version of Levigo which we are shipping with the PRO version for our enterprise customers.