PDFColorSpace
, PDFWritable
public class PDFICCBasedColorSpace extends PDFObject implements PDFColorSpace
Constructor | Description |
---|---|
PDFICCBasedColorSpace(java.lang.String explicitName,
PDFICCStream iccStream) |
Constructs a the ICCBased color space with an explicit name (ex.
|
PDFICCBasedColorSpace(PDFICCStream iccStream) |
Constructs a the ICCBased color space.
|
Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, 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 documentpublic void getChildren(java.util.Set<PDFObject> children)
getChildren
in class PDFObject
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.