[ https://issues.apache.org/jira/browse/PDFBOX-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14384516#comment-14384516 ]
ASF subversion and git services commented on PDFBOX-2734: --------------------------------------------------------- Commit 1669670 from [~tilman] in branch 'pdfbox/branches/1.8' [ https://svn.apache.org/r1669670 ] PDFBOX-2734: use base variable; return array as COSObject; fix array overflow introduced in rev 1429524 > Can't create PDF with DeviceN colorspace > ---------------------------------------- > > Key: PDFBOX-2734 > URL: https://issues.apache.org/jira/browse/PDFBOX-2734 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Affects Versions: 1.8.8, 1.8.9 > Reporter: Tilman Hausherr > Assignee: Tilman Hausherr > Labels: DeviceN > > Reported by Floris in the user mailing list. His PDF didn't have the > attributes: > {code} > 6 0 obj > << > /Cs1 /DeviceGray > /Cs2 /DeviceN > >> > endobj > {code} > Reasons: > - local array overwrites base array > - getCOSObject returns name instead of array > - setAttributes inflates the array too much (likely accidentally introduced > in rev 1429524) > PDF after the fix: > {code} > 6 0 obj > << > /Cs1 /DeviceGray > /Cs2 [/DeviceN [/Cyan /Magenta /Yellow /Black /Orange /Green] > /DeviceCMYK 8 0 R 9 0 R] > >> > endobj > {code} > One of the bugs is also in the trunk, I will test this later. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org