public class PDFICCBasedColorSpace extends PDFObject implements PDFColorSpace
| Constructor and Description |
|---|
PDFICCBasedColorSpace(PDFICCStream iccStream)
Constructs a the ICCBased color space.
|
PDFICCBasedColorSpace(java.lang.String explicitName,
PDFICCStream iccStream)
Constructs a the ICCBased color space with an explicit name (ex.
|
| Modifier and Type | Method and Description |
|---|---|
void |
getChildren(java.util.Set<PDFObject> children) |
PDFICCStream |
getICCStream() |
java.lang.String |
getName() |
int |
getNumComponents()
Get the number of color components for this colorspace
|
boolean |
isCMYKColorSpace() |
boolean |
isDeviceColorSpace() |
boolean |
isGrayColorSpace() |
boolean |
isRGBColorSpace() |
static PDFICCBasedColorSpace |
setupsRGBAsDefaultRGBColorSpace(PDFDocument pdfDoc)
Sets sRGB as the DefaultRGB color space in the PDF document.
|
static PDFICCStream |
setupsRGBColorProfile(PDFDocument pdfDoc)
Sets up the sRGB color profile in the PDF document.
|
static PDFICCBasedColorSpace |
setupsRGBColorSpace(PDFDocument pdfDoc)
Installs the sRGB color space in the PDF document.
|
protected java.lang.String |
toPDFString()
This method returns a String representation of the PDF object.
|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDFpublic PDFICCBasedColorSpace(java.lang.String explicitName,
PDFICCStream iccStream)
explicitName - an explicit name or null if a name should be generatediccStream - the ICC stream to associate with this color spacepublic PDFICCBasedColorSpace(PDFICCStream iccStream)
iccStream - the ICC stream to associate with this color spacepublic PDFICCStream getICCStream()
public int getNumComponents()
getNumComponents in interface PDFColorSpacepublic java.lang.String getName()
getName in interface PDFColorSpacepublic boolean isDeviceColorSpace()
isDeviceColorSpace in interface PDFColorSpacepublic boolean isRGBColorSpace()
isRGBColorSpace in interface PDFColorSpacepublic boolean isCMYKColorSpace()
isCMYKColorSpace in interface PDFColorSpacepublic boolean isGrayColorSpace()
isGrayColorSpace in interface PDFColorSpaceprotected java.lang.String toPDFString()
toPDFString in class PDFObjectpublic static PDFICCBasedColorSpace setupsRGBAsDefaultRGBColorSpace(PDFDocument pdfDoc)
pdfDoc - the PDF documentpublic static PDFICCBasedColorSpace setupsRGBColorSpace(PDFDocument pdfDoc)
pdfDoc - the PDF documentpublic static PDFICCStream setupsRGBColorProfile(PDFDocument pdfDoc)
pdfDoc - the PDF documentpublic void getChildren(java.util.Set<PDFObject> children)
getChildren in class PDFObjectCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.