You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Simon Maskell (Created) (JIRA)" <ji...@apache.org> on 2011/10/03 13:42:33 UTC
[jira] [Created] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Wrong color space used for DeviceN operator without color space specified
-------------------------------------------------------------------------
Key: PDFBOX-1128
URL: https://issues.apache.org/jira/browse/PDFBOX-1128
Project: PDFBox
Issue Type: Bug
Components: PDFReader, PDModel
Affects Versions: 1.6.0
Reporter: Simon Maskell
Priority: Minor
I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Daniel Wilson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126641#comment-13126641 ]
Daniel Wilson commented on PDFBOX-1128:
---------------------------------------
The stencil mask looks lots better! Awesome!
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: DeviceN.patch, test4.pdf, test4.pdf-1.png
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Daniel Wilson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127609#comment-13127609 ]
Daniel Wilson commented on PDFBOX-1128:
---------------------------------------
Andreas,
I'm afraid I don't have an example either. Sorry!
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: DeviceN.patch, test4.pdf, test4.pdf-1.png
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Andreas Lehmkühler (Reopened JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler reopened PDFBOX-1128:
----------------------------------------
Reopend as it was my bad. I already found the cause, but I've to clean up my code before comitting it.
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: DeviceN.patch, test4.pdf, test4.pdf-1.png
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Andreas Lehmkühler (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119314#comment-13119314 ]
Andreas Lehmkühler commented on PDFBOX-1128:
--------------------------------------------
I fixed the issue in revision 1178412, but I didn't use Simons patch, as It was just a workaround. Separation-colorspaces had a similar issue, see PDFBOX-963 for further details.
Thanks for the pointer and the detailed description, it made it easy for me to fix this issue !
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: DeviceN.patch, test4.pdf, test4.pdf-1.png
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Andreas Lehmkühler (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127280#comment-13127280 ]
Andreas Lehmkühler commented on PDFBOX-1128:
--------------------------------------------
@Daniel
I assume that you don't have a sample for a [1,0] DecodeArray, have you? If not I'll set this issue to resolved. I added a TODO comment, so that we will (hopefully) find the relevant part of the source, if we'll get a suitable sample for that case in the future.
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: DeviceN.patch, test4.pdf, test4.pdf-1.png
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Andreas Lehmkühler (Resolved JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-1128.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.7.0
Assignee: Andreas Lehmkühler
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: DeviceN.patch, test4.pdf, test4.pdf-1.png
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Simon Maskell (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Maskell updated PDFBOX-1128:
----------------------------------
Attachment: DeviceN.patch
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Priority: Minor
> Attachments: DeviceN.patch
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Andreas Lehmkühler (Resolved JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-1128.
----------------------------------------
Resolution: Fixed
I set this to resolved as the main issue is solved. I added a comment to the source pointing to the unsupported case.
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: DeviceN.patch, test4.pdf, test4.pdf-1.png
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Daniel Wilson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125047#comment-13125047 ]
Daniel Wilson commented on PDFBOX-1128:
---------------------------------------
I had hoped this would resolve some test failures I've seen recently, but it didn't resolve all of them.
ARCHIVERGB is showing 2 problems:
1. The stencil mask is missing completely
2. Some of the letters are not being filled. I've seen this in other cases that I have not yet received permission to release ... a group of letters will have only the first filled with the fill color.
Back in August, these items were working better ... so one of us made a mistake somewhere.
If you prefer me to post a new issue, I certainly can.
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: DeviceN.patch, test4.pdf, test4.pdf-1.png
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Andreas Lehmkühler (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126000#comment-13126000 ]
Andreas Lehmkühler commented on PDFBOX-1128:
--------------------------------------------
I guess I resolved the issue in revision 1182494.
The stencil mask works better than before. Former PDFBox versions always used black as color for the stencil mask and now following the specs the non stroking color will be used :-)
There is one TODO left. The stencil mask creation is based on default values ([0,1]) for the DecodeArray. Does anyone have a sample using [1,0] as DecodeArray?
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: DeviceN.patch, test4.pdf, test4.pdf-1.png
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Simon Maskell (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119322#comment-13119322 ]
Simon Maskell commented on PDFBOX-1128:
---------------------------------------
That's great, thanks for the prompt response.
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: DeviceN.patch, test4.pdf, test4.pdf-1.png
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Andreas Lehmkühler (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126155#comment-13126155 ]
Andreas Lehmkühler commented on PDFBOX-1128:
--------------------------------------------
I forgot to commit my changes on PDColorState. I made up for it in revision 1182584
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: DeviceN.patch, test4.pdf, test4.pdf-1.png
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PDFBOX-1128) Wrong color space used for DeviceN
operator without color space specified
Posted by "Simon Maskell (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Maskell updated PDFBOX-1128:
----------------------------------
Attachment: test4.pdf-1.png
test4.pdf
> Wrong color space used for DeviceN operator without color space specified
> -------------------------------------------------------------------------
>
> Key: PDFBOX-1128
> URL: https://issues.apache.org/jira/browse/PDFBOX-1128
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader, PDModel
> Affects Versions: 1.6.0
> Reporter: Simon Maskell
> Priority: Minor
> Attachments: DeviceN.patch, test4.pdf, test4.pdf-1.png
>
>
> I have a PDF that uses a DeviceN color space, but when using the PDFToImage utility I noticed that some of the text comes out as cyan.
> I tracked the issue down to when the scn or SCN operator is used without setting the color space explicitly (ie using the current color space). I have attached a patch which resolves the issue by reinstating the original (DeviceN) color space after using the alternate color space, otherwise the alternate color space (in this case CMYK) was seen as the current color space and the attribute of 1 for the scn operator, which was meant for the DeviceN color space, is used in the CMYK color space resulting in the cyan.
> I have also attached an example PDF and the result for the PDFToImage conversion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira