[
https://issues.apache.org/jira/browse/PDFBOX-3157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15045592#comment-15045592
]
ASF subversion and git services commented on PDFBOX-3157:
---------------------------------------------------------
Commit 1718448 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1718448 ]
PDFBOX-3157: don't hardcode N to 3
> PDOutputIntent has N=3 (RGB) hardcoded
> --------------------------------------
>
> Key: PDFBOX-3157
> URL: https://issues.apache.org/jira/browse/PDFBOX-3157
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.8.10, 2.0.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 1.8.11, 2.0.0
>
>
> This code is suspicious:
> {code}
> private PDStream configureOutputProfile (PDDocument doc, InputStream
> colorProfile) throws IOException {
> PDStream stream = new PDStream(doc,colorProfile, false);
> stream.getStream().setFilters(COSName.FLATE_DECODE);
> stream.getStream().setInt( COSName.LENGTH,
> stream.getByteArray().length );
> stream.getStream().setInt(COSName.N, 3);
> stream.addCompression();
> return stream;
> }
> {code}
> N is hardcoded to 3, although it could be a CMYK profile.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]