Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.10, 2.0.0
-
None
Description
This code is suspicious:
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; }
N is hardcoded to 3, although it could be a CMYK profile.