org.pdfbox.pdmodel.graphics.color
Class PDDeviceNAttributes
java.lang.Object
org.pdfbox.pdmodel.graphics.color.PDDeviceNAttributes
public class PDDeviceNAttributes
extends java.lang.Object
This class represents attributes for a DeviceN color space.
PDDeviceNAttributes
public PDDeviceNAttributes()
Constructor.
PDDeviceNAttributes
public PDDeviceNAttributes(COSDictionary attributes)
Constructor.
attributes
- A dictionary that has all of the attributes.
getCOSDictionary
public COSDictionary getCOSDictionary()
This will get the underlying cos dictionary.
- The dictionary that this object wraps.
getColorants
public Map getColorants()
throws IOException
This will get a map of colorants. See the PDF Reference for more details about
this attribute. The map will contain a java.lang.String as the key, a colorant name,
and a PDColorSpace as the value.
setColorants
public void setColorants(Map colorants)
This will replace the existing colorant attribute. The key should be strings
and the values should be PDColorSpaces.
colorants
- The map of colorants.