public class PDFICCBasedColorSpace extends PDFObject implements PDFColorSpace
DATE_FORMAT, log
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 |
---|---|
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, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF
public 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 PDFColorSpace
public java.lang.String getName()
getName
in interface PDFColorSpace
public boolean isDeviceColorSpace()
isDeviceColorSpace
in interface PDFColorSpace
public boolean isRGBColorSpace()
isRGBColorSpace
in interface PDFColorSpace
public boolean isCMYKColorSpace()
isCMYKColorSpace
in interface PDFColorSpace
public boolean isGrayColorSpace()
isGrayColorSpace
in interface PDFColorSpace
protected java.lang.String toPDFString()
toPDFString
in class PDFObject
public 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 documentCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.