[
https://issues.apache.org/jira/browse/PDFBOX-3560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr resolved PDFBOX-3560.
-------------------------------------
Resolution: Fixed
Assignee: Tilman Hausherr
> PDPattern.getCOSObject() always returns null
> --------------------------------------------
>
> Key: PDFBOX-3560
> URL: https://issues.apache.org/jira/browse/PDFBOX-3560
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 2.0.3
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 2.0.4, 2.1.0
>
>
> As reported by Clifford in the mailing list:
> {code}
> PDPage page = new PDPage();
> PDColorSpace cs = PDColorSpace.create(COSName.PATTERN,page.getResources());
> System.out.println(cs.getCOSObject());
> {code}
> this outputs null because the array field is not initialized.
> The PDF specification has this:
> {quote}
> A colour space shall be defined by an array object whose first element is a
> name object identifying the colour space family. The remaining array
> elements, if any, are parameters that further characterize the colour space;
> their number and types vary according to the particular family. For families
> that do not require parameters, the colour space may be specified simply by
> the family name itself instead of an array.
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]