[
https://issues.apache.org/jira/browse/PDFBOX-3157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr updated PDFBOX-3157:
------------------------------------
External issue URL:
http://stackoverflow.com/questions/34138201/how-do-i-add-an-icc-to-an-existing-pdf-document
(was:
http://stackoverflohttp://stackoverflow.com/questions/34138201/how-do-i-add-an-icc-to-an-existing-pdf-document=1#comment56029530_34138201)
> 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]