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 2015/04/02 21:01:52 UTC
[jira] [Commented] (PDFBOX-2744) Add validation check for
setNonStrokingColor and setStrokingColor
[ 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org