public final class PDColorSpaceFactory
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static PDColorSpace |
createColorSpace(java.lang.String colorSpaceName) |
This will create the correct color space given the name.
|
static PDColorSpace |
createColorSpace(java.lang.String colorSpaceName,
java.util.Map<java.lang.String,PDColorSpace> colorSpaces) |
This will create the correct color space given the name.
|
static PDColorSpace |
createColorSpace(COSBase colorSpace) |
This will create the correct color space given the name.
|
static PDColorSpace |
createColorSpace(COSBase colorSpace,
java.util.Map<java.lang.String,PDColorSpace> colorSpaces) |
This will create the correct color space given the name.
|
static PDColorSpace |
createColorSpace(COSBase colorSpace,
java.util.Map<java.lang.String,PDColorSpace> colorSpaces,
java.util.Map<java.lang.String,PDPatternResources> patterns) |
This will create the correct color space given the name.
|
static PDColorSpace |
createColorSpace(PDDocument doc,
java.awt.color.ColorSpace cs) |
This will create the correct color space from a java colorspace.
|
public static PDColorSpace createColorSpace(COSBase colorSpace) throws java.io.IOException
colorSpace - The color space object.java.io.IOException - If the color space name is unknown.public static PDColorSpace createColorSpace(COSBase colorSpace, java.util.Map<java.lang.String,PDColorSpace> colorSpaces) throws java.io.IOException
colorSpace - The color space object.colorSpaces - The ColorSpace dictionary from the current resources, if any.java.io.IOException - If the color space name is unknown.public static PDColorSpace createColorSpace(COSBase colorSpace, java.util.Map<java.lang.String,PDColorSpace> colorSpaces, java.util.Map<java.lang.String,PDPatternResources> patterns) throws java.io.IOException
colorSpace - The color space object.colorSpaces - The ColorSpace dictionary from the current resources, if any.patterns - The patterns dictionary from the current resources, if anyjava.io.IOException - If the color space name is unknown.public static PDColorSpace createColorSpace(java.lang.String colorSpaceName) throws java.io.IOException
colorSpaceName - The name of the colorspace.java.io.IOException - If the color space name is unknown.public static PDColorSpace createColorSpace(java.lang.String colorSpaceName, java.util.Map<java.lang.String,PDColorSpace> colorSpaces) throws java.io.IOException
colorSpaceName - The name of the colorspace.colorSpaces - The ColorSpace dictionary from the current resources, if any.java.io.IOException - If the color space name is unknown.public static PDColorSpace createColorSpace(PDDocument doc, java.awt.color.ColorSpace cs) throws java.io.IOException
doc - The doc to potentiall write information to.cs - The awt colorspace.java.io.IOException - If the color space name is unknown.