[
https://issues.apache.org/jira/browse/PDFBOX-3251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Petras updated PDFBOX-3251:
---------------------------
Attachment: PDFBOX_3251_ColorSpace_validation.patch
Added the patch, which in PDModel limits the support of abbreviated names of
color space to inline images only. Additionally it checks that color table of
indexed color space is string.
Preflight validation is modified accordingly to register errors, thrown by
PDModel, when invalid color space for inline image is specified (instead of
duplicating the validation made by PDModel).
> 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: [email protected]
For additional commands, e-mail: [email protected]