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 2016/11/08 20:21:58 UTC

[jira] [Updated] (PDFBOX-3560) PDPattern.getCOSObject() always returns null

     [ https://issues.apache.org/jira/browse/PDFBOX-3560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-3560:
------------------------------------
    Fix Version/s: 2.1.0
                   2.0.4

> 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
>             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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org