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 2015/12/07 21:20:11 UTC

[jira] [Resolved] (PDFBOX-3157) PDOutputIntent has N=3 (RGB) hardcoded

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

Tilman Hausherr resolved PDFBOX-3157.
-------------------------------------
    Resolution: Fixed

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