/** * Sets the colorant map. * @param colorants the map of colorants */ public void setColorants(Map<String, PDColorSpace> colorants) { COSDictionary colorantDict = null; if(colorants != null) { colorantDict = COSDictionaryMap.convert(colorants); } dictionary.setItem(COSName.COLORANTS, colorantDict); }
/** * Sets the colorant map. * @param colorants the map of colorants */ public void setColorants(Map<String, PDColorSpace> colorants) { COSDictionary colorantDict = null; if(colorants != null) { colorantDict = COSDictionaryMap.convert(colorants); } dictionary.setItem(COSName.COLORANTS, colorantDict); }
/** * Sets the colorant map. * @param colorants the map of colorants */ public void setColorants(Map<String, PDColorSpace> colorants) { COSDictionary colorantDict = null; if(colorants != null) { colorantDict = COSDictionaryMap.convert(colorants); } dictionary.setItem(COSName.COLORANTS, colorantDict); }