You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/07/06 11:10:33 UTC

[jira] [Created] (PDFBOX-2191) Identity function not implemented

Tilman Hausherr created PDFBOX-2191:
---------------------------------------

             Summary: Identity function not implemented
                 Key: PDFBOX-2191
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2191
             Project: PDFBox
          Issue Type: Bug
          Components: Rendering
    Affects Versions: 2.0.0
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 2.0.0


I get this exception with the attached file:
{code}
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: org.apache.pdfbox.cos.COSName cannot be cast to org.apache.pdfbox.cos.COSDictionary
        at org.apache.pdfbox.pdmodel.common.function.PDFunction.create(PDFunction.java:137)
        at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.<init>(PDSeparation.java:73)
        at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorS
pace.java:126)
{code}


The cause is this:

{code}
28 0 obj
[ 
/Separation /PANTONE#20723 /DeviceGray /Identity 
]
endobj
{code}

Although the identity function isn't in the spec for the separation colorspace, it is mentioned elsewhere (TransferFunction) so we need it anyway.



--
This message was sent by Atlassian JIRA
(v6.2#6252)