org.pdfbox.pdmodel.graphics.color
Class PDColorSpaceFactory
java.lang.Object
org.pdfbox.pdmodel.graphics.color.PDColorSpaceFactory
public final class PDColorSpaceFactory
extends java.lang.Object
This class represents a color space in a pdf document.
createColorSpace
public static PDColorSpace createColorSpace(String colorSpaceName)
throws IOException
This will create the correct color space given the name.
colorSpaceName
- The name of the colorspace.
createColorSpace
public static PDColorSpace createColorSpace(COSBase colorSpace)
throws IOException
This will create the correct color space given the name.
colorSpace
- The color space object.
createColorSpace
public static PDColorSpace createColorSpace(PDDocument doc,
ColorSpace cs)
throws IOException
This will create the correct color space from a java colorspace.
doc
- The doc to potentiall write information to.cs
- The awt colorspace.