[
https://issues.apache.org/jira/browse/PDFBOX-2744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14393172#comment-14393172
]
Tilman Hausherr commented on PDFBOX-2744:
-----------------------------------------
A look at the spec shows that the color operators implicitely set the
colorspace, so a check what colorspace is currently set would be wrong.
> Add validation check for setNonStrokingColor and setStrokingColor
> -----------------------------------------------------------------
>
> Key: PDFBOX-2744
> URL: https://issues.apache.org/jira/browse/PDFBOX-2744
> Project: PDFBox
> Issue Type: Improvement
> Components: Writing
> Affects Versions: 1.8.9, 1.8.10, 2.0.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
>
> Validate parameters -and check that the correct colorspace is active.
> Currently this isn't done, see here, where a user was able to call a method
> meant for DeviceGray although the selected colorspace was Separation:-
> https://mail-archives.apache.org/mod_mbox/pdfbox-users/201504.mbox/%3C551C8867.1000805%40gmail.com%3E
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]