Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.1.2
-
Fix Version/s: 6.0
-
Component/s: Core/Rendering
-
Labels:None
-
Environment:ICEpdf 5.1.2 P03
-
Support Case References:Support Case #13420 - https://icesoft.my.salesforce.com/5007000001C1In8
Description
With the provided PDF file, some pages are rendered white/blank. The following errors are reported in the logs:
FINEST: Error parsing text block
java.lang.IllegalArgumentException: alpha value out of range
at java.awt.AlphaComposite.<init>(AlphaComposite.java:624)
at java.awt.AlphaComposite.getInstance(AlphaComposite.java:689)
at org.icepdf.core.util.content.AbstractContentParser.setAlpha(AbstractContentParser.java:1915)
at org.icepdf.core.util.content.AbstractContentParser.consume_Tj(AbstractContentParser.java:1405)
at org.icepdf.core.util.content.NContentParser.parseText(Unknown Source)
at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
at org.icepdf.core.pobjects.Page.init(Page.java:392)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1152)
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)
May 11, 2015 9:33:11 AM org.icepdf.core.util.content.NContentParser parse
WARNING: Error parsing content stream.
java.lang.IllegalArgumentException: alpha value out of range
at java.awt.AlphaComposite.<init>(AlphaComposite.java:624)
at java.awt.AlphaComposite.getInstance(AlphaComposite.java:689)
at org.icepdf.core.util.content.AbstractContentParser.setAlpha(AbstractContentParser.java:1915)
at org.icepdf.core.util.content.AbstractContentParser.commonFill(AbstractContentParser.java:1793)
at org.icepdf.core.util.content.AbstractContentParser.consume_f(AbstractContentParser.java:1050)
at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
at org.icepdf.core.pobjects.Page.init(Page.java:392)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1152)
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)
FINEST: Error parsing text block
java.lang.IllegalArgumentException: alpha value out of range
at java.awt.AlphaComposite.<init>(AlphaComposite.java:624)
at java.awt.AlphaComposite.getInstance(AlphaComposite.java:689)
at org.icepdf.core.util.content.AbstractContentParser.setAlpha(AbstractContentParser.java:1915)
at org.icepdf.core.util.content.AbstractContentParser.consume_Tj(AbstractContentParser.java:1405)
at org.icepdf.core.util.content.NContentParser.parseText(Unknown Source)
at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
at org.icepdf.core.pobjects.Page.init(Page.java:392)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1152)
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)
May 11, 2015 9:33:11 AM org.icepdf.core.util.content.NContentParser parse
WARNING: Error parsing content stream.
java.lang.IllegalArgumentException: alpha value out of range
at java.awt.AlphaComposite.<init>(AlphaComposite.java:624)
at java.awt.AlphaComposite.getInstance(AlphaComposite.java:689)
at org.icepdf.core.util.content.AbstractContentParser.setAlpha(AbstractContentParser.java:1915)
at org.icepdf.core.util.content.AbstractContentParser.commonFill(AbstractContentParser.java:1793)
at org.icepdf.core.util.content.AbstractContentParser.consume_f(AbstractContentParser.java:1050)
at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
at org.icepdf.core.pobjects.Page.init(Page.java:392)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1152)
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)
Activity
Arran Mccullough
created issue -
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44676 | Tue May 12 14:27:02 MDT 2015 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/GraphicsState.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44677 | Tue May 12 14:28:31 MDT 2015 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/GraphicsState.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44678 | Tue May 12 14:29:01 MDT 2015 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/GraphicsState.java
|
Patrick Corless
made changes -
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 5.2 [ 10970 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
The postscript in question is part of an external graphics state definition, /ca 255. Normally the range of values is 0-1.0 but for some reason this PDF does 255 which seems to be an error in the encoder. 255 is commonly used for in exchange for 1.0 in many different colour models.
I've added some code protection around alpha fill and stroke and will convert to 0-255 to 0-1.0. PDF renders correctly no.