protected PDFunction getTintTransformer(COSStream xstream) throws IOException { COSBase cs = xstream.getDictionaryObject(COSName.COLORSPACE, COSName.CS); if (cs == null) { return null; } COSArray array = getCOSArray(cs); if (array == null) { return null; } String name = ((COSName) array.getObject(0)).getName(); if (name.equals("DeviceN")) { PDFunction function = PDFunction.create(array.getObject(3)); return function; } return null; }
/** * This will get the tint transform function. * * @return The tint transform function. * @throws IOException If there is an error creating the PDFunction */ public PDFunction getTintTransform() throws IOException { return PDFunction.create(array.getObject(3)); }