public final class PDColorSpaceFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static PDColorSpace |
createColorSpace(COSBase colorSpace)
This will create the correct color space given the name.
|
static PDColorSpace |
createColorSpace(COSBase colorSpace,
Map<String,PDColorSpace> colorSpaces)
This will create the correct color space given the name.
|
static PDColorSpace |
createColorSpace(COSBase colorSpace,
Map<String,PDColorSpace> colorSpaces,
Map<String,PDPatternResources> patterns)
This will create the correct color space given the name.
|
static PDColorSpace |
createColorSpace(PDDocument doc,
ColorSpace cs)
This will create the correct color space from a java colorspace.
|
static PDColorSpace |
createColorSpace(String colorSpaceName)
This will create the correct color space given the name.
|
static PDColorSpace |
createColorSpace(String colorSpaceName,
Map<String,PDColorSpace> colorSpaces)
This will create the correct color space given the name.
|
public static PDColorSpace createColorSpace(COSBase colorSpace) throws IOException
colorSpace - The color space object.IOException - If the color space name is unknown.public static PDColorSpace createColorSpace(COSBase colorSpace, Map<String,PDColorSpace> colorSpaces) throws IOException
colorSpace - The color space object.colorSpaces - The ColorSpace dictionary from the current resources, if any.IOException - If the color space name is unknown.public static PDColorSpace createColorSpace(COSBase colorSpace, Map<String,PDColorSpace> colorSpaces, Map<String,PDPatternResources> patterns) throws 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 anyIOException - If the color space name is unknown.public static PDColorSpace createColorSpace(String colorSpaceName) throws IOException
colorSpaceName - The name of the colorspace.IOException - If the color space name is unknown.public static PDColorSpace createColorSpace(String colorSpaceName, Map<String,PDColorSpace> colorSpaces) throws IOException
colorSpaceName - The name of the colorspace.colorSpaces - The ColorSpace dictionary from the current resources, if any.IOException - If the color space name is unknown.public static PDColorSpace createColorSpace(PDDocument doc, ColorSpace cs) throws IOException
doc - The doc to potentiall write information to.cs - The awt colorspace.IOException - If the color space name is unknown.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.