Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.1
-
Fix Version/s: 5.1.1
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:All
-
Support Case References:Support Case #13048 - https://icesoft.my.salesforce.com/5007000000nQkXp
Description
When rendering the provided PDF in 5.1.0 certain images are not rendered and the following errors are displayed:
WARNING: Error loading image: 17 0R Image stream= {Type=XObject, Interpolate=true, Filter=DCTDecode, Length=18 0R, ColorSpace=28 0R, Height=1344, Width=2640, Subtype=Image, BitsPerComponent=8} 17 0R
java.lang.IllegalArgumentException: Raster ByteInterleavedRaster: width = 2640 height = 1344 #numDataElements 3 dataOff[0] = 0 is incompatible with ColorModel ColorModel: #pixelBits = 8 numComponents = 1 color space = java.awt.color.ICC_ColorSpace@2d24e320 transparency = 1 has alpha = false isAlphaPre = false
at java.awt.image.BufferedImage.<init>(Unknown Source)
at icepdf.ak.c(Unknown Source)
at icepdf.aj.a(Unknown Source)
at icepdf.aj.a(Unknown Source)
at icepdf.aj.a(Unknown Source)
at icepdf.gh.h(Unknown Source)
at icepdf.gh.call(Unknown Source)
at icepdf.gd.d(Unknown Source)
at icepdf.fp.a(Unknown Source)
at icepdf.gd.a(Unknown Source)
at icepdf.if.a(Unknown Source)
at icepdf.hf.a(Unknown Source)
at icepdf.bl.a(Unknown Source)
at icepdf.bl.a(Unknown Source)
at icepdf.qk.a(Unknown Source)
at icepdf.qk.a(Unknown Source)
at icepdf.qp.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
WARNING: Error loading image: 17 0R Image stream= {Type=XObject, Interpolate=true, Filter=DCTDecode, Length=18 0R, ColorSpace=28 0R, Height=1344, Width=2640, Subtype=Image, BitsPerComponent=8} 17 0R
java.lang.IllegalArgumentException: Raster ByteInterleavedRaster: width = 2640 height = 1344 #numDataElements 3 dataOff[0] = 0 is incompatible with ColorModel ColorModel: #pixelBits = 8 numComponents = 1 color space = java.awt.color.ICC_ColorSpace@2d24e320 transparency = 1 has alpha = false isAlphaPre = false
at java.awt.image.BufferedImage.<init>(Unknown Source)
at icepdf.ak.c(Unknown Source)
at icepdf.aj.a(Unknown Source)
at icepdf.aj.a(Unknown Source)
at icepdf.aj.a(Unknown Source)
at icepdf.gh.h(Unknown Source)
at icepdf.gh.call(Unknown Source)
at icepdf.gd.d(Unknown Source)
at icepdf.fp.a(Unknown Source)
at icepdf.gd.a(Unknown Source)
at icepdf.if.a(Unknown Source)
at icepdf.hf.a(Unknown Source)
at icepdf.bl.a(Unknown Source)
at icepdf.bl.a(Unknown Source)
at icepdf.qk.a(Unknown Source)
at icepdf.qk.a(Unknown Source)
at icepdf.qp.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Activity
Arran Mccullough
created issue -
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #42636 | Thu Sep 25 11:15:59 MDT 2014 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/ImagePool.java
MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageStream.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #42637 | Thu Sep 25 11:22:48 MDT 2014 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageStream.java
|
Patrick Corless
made changes -
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 5.1.1 [ 11770 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
With 5.0.7 I see the following error but the images render fine:
FINE: Problem loading JPEG image via JPEGImageDecoder:
java.lang.IllegalArgumentException: Raster ByteInterleavedRaster: width = 610 height = 812 #numDataElements 3 dataOff[0] = 0 is incompatible with ColorModel ColorModel: #pixelBits = 8 numComponents = 1 color space = java.awt.color.ICC_ColorSpace@1051cab transparency = 1 has alpha = false isAlphaPre = false
at java.awt.image.BufferedImage.<init>(BufferedImage.java:630)
at org.icepdf.core.pobjects.ImageUtility.makeGrayBufferedImage(ImageUtility.java:529)
at org.icepdf.core.pobjects.ImageStream.dctDecode(ImageStream.java:549)
at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:369)
at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:308)
at org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:95)
at org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:39)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)