You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/11/08 20:15:59 UTC

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

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

ASF subversion and git services commented on PDFBOX-3560:
---------------------------------------------------------

Commit 1768777 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1768777 ]

PDFBOX-3560: fill array so that getCOSObject() works

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