You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Petras (JIRA)" <ji...@apache.org> on 2016/02/26 11:05:18 UTC

[jira] [Commented] (PDFBOX-3251) Improve parsing and validation of ColorSpace for inline image

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

Petras commented on PDFBOX-3251:
--------------------------------

With suggested patch, Preflight validation of the sample file [PDFA-RGB.pdf|https://issues.apache.org/jira/secure/attachment/12788518/PDFA-RGB.pdf] from PDFBOX-3235 fails with the expected error:
{code}
2.4.4 : Invalid Color space, Error: Unknown colorspace 'RGB'
{code}

> Improve parsing and validation of ColorSpace for inline image
> -------------------------------------------------------------
>
>                 Key: PDFBOX-3251
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3251
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel, Preflight
>    Affects Versions: 1.8.11
>            Reporter: Petras
>         Attachments: PDFBOX_3251_ColorSpace_validation.patch
>
>
> This ticket is a follow-up of PDFBOX-3235.
> Currently neither Preflight, nor PDModel checks the following restrictions of ColorSpace for inline image (as defined in PDF Reference 1.4 and ISO 32000):
> * if *Indexed* color space specified, its color table must be specified by a byte string;
> * abbreviations used for the names of color spaces are valid only in inline images. 
> PDModel and Preflight should check and validate that color table of *Indexed* table is string and support the abbreviated names of color space only within the content stream of inline image.



--
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