Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.2
-
Fix Version/s: 4.2.2
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:-
Description
The attached test file´s embedded fonts do not render. The PDF file was created with GS 9 (PdfCreator 1.2.0). Here is the exception:
FINE: Error getting ICCBased colour
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.awt.color.ICC_Transform.<init>(ICC_Transform.java:103)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:148)
at org.icepdf.core.pobjects.graphics.ICCBased.getColor(ICCBased.java:178)
at org.icepdf.core.util.ContentParser.consume_SC(ContentParser.java:1797)
at org.icepdf.core.util.ContentParser.parse(ContentParser.java:661)
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)
Apr 11, 2011 4:40:34 PM org.icepdf.core.pobjects.graphics.ICCBased getColor
FINE: Error getting ICCBased colour
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.awt.color.ICC_Transform.<init>(ICC_Transform.java:103)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:148)
at org.icepdf.core.pobjects.graphics.ICCBased.getColor(ICCBased.java:178)
at org.icepdf.core.util.ContentParser.consume_SC(ContentParser.java:1797)
at org.icepdf.core.util.ContentParser.parse(ContentParser.java:661)
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)
Apr 11, 2011 4:40:34 PM org.icepdf.core.pobjects.graphics.ICCBased getColor
Hi Patrick,
thanks for your help. When open the attached file in the open source version of icepdf I obtain a blank page. The problem is that the convertToString method of CMap.java class receives a CharSequence s of length 1. Incidentally I noted that the same method contains a bug: if (s == null && s.length() % 2 != 0) I think should instead be if (s == null || s.length() % 2 != 0). But I don't think that is the problem.
P.S. Sorry but I'm not able to attach the file so I sent you the link where you can download it: https://www.dropbox.com/s/yr7slv1tgxnc87t/Atto2.pdf?dl=0
Thanks for you time,
Giorgio