[ 
https://issues.apache.org/jira/browse/PDFBOX-2407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185613#comment-14185613
 ] 

John Hewson edited comment on PDFBOX-2407 at 10/27/14 6:58 PM:
---------------------------------------------------------------

There's a comment in the code that "The default fill color needs an 
OutputIntent" but it appears to be misleading, as 
PreflightStreamEngine#validColorSpace can also return true if the color space 
if isDeviceIndependent is true, which does not examine the OutputIntent.

As far as I can tell, the DefaultRGB/Gray/CMYK color spaces can be mapped to a 
device-independent colour space using an OutputIntent and that is why 
validColorSpaceDestOutputProfile examines that. However that's not relevant to 
our "HKS 14" separation color space.

I think the problem is that the code in isDeviceIndependent forgets that there 
are other color spaces beyond PDICCBased which are device-independent, i.e. any 
color space which directly maps to another PDICCBased color space. A separation 
color space always maps to another underlying "alternate" color space, and in 
this PDF that alternate color space is an instance of PDICCBased, which means 
the color space is actually device-independant.


was (Author: jahewson):
There's a comment in the code that "The default fill color needs an 
OutputIntent" but it appears to be misleading, as 
PreflightStreamEngine#validColorSpace can also return true if the color space 
if isDeviceIndependent is true, which does not examine the OutputIntent.

As far as I can tell, the DefaultRGB/Gray/CMYK color spaces can be mapped to a 
device-independent colour space using an OutputIntent and that is why 
validColorSpaceDestOutputProfile examines that. However that's not relevant to 
our "HKS 14" separation color space.

I think the problem is that the code in isDeviceIndependent forgets that there 
are other color spaces beyond PDICCBased which are device-independent, i.e. any 
color space which directly maps to another PDICCBased color space. A separation 
color space always maps to another underlying "alternate" color space, and in 
this PDF that alternate color space is an instance of PDICCBased, which means 
the color space is actually device-device-independant.

> false negative: 2.4.3 : Invalid Color space, The operator "f" can't be used 
> without Color Profile ?
> ---------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-2407
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2407
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 2.0.0
>         Environment: deb7 java7
>            Reporter: Ralf Hauser
>             Fix For: 2.0.0
>
>         Attachments: AA-preflight_PDFA_Conference_2009_summary.pdf, 
> KOST_PDFA_Conference_2009.pdf.pdftron-log.xml, PDFA_conf_validation_report.xml
>
>
> "PDFA_Conference_2009.pdf" is not valid, error(s) : Tue Oct 07 10:00:30 CEST 
> 2014
> - 1: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile
> - 2: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile
> - 3: 2.4.3 : Invalid Color space, The operator "f*" can't be used without 
> Color Profile
> - 4: 2.4.3 : Invalid Color space, The operator "f*" can't be used without 
> Color Profile
> - 5: 2.4.3 : Invalid Color space, The operator "f*" can't be used without 
> Color Profile
> - 6: 2.4.3 : Invalid Color space, The operator "f*" can't be used without 
> Color Profile
> - 7: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile
> - 8: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile
> - 9: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile
> - 10: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile
> - 11: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile
> - 12: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile
> - 13: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile
> - 14: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile
> - 15: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile
> - 16: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile
> - 17: 2.4.3 : Invalid Color space, The operator "f" can't be used without 
> Color Profile



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to