Package com.itextpdf.text.pdf
Class ColorDetails
java.lang.Object
com.itextpdf.text.pdf.ColorDetails
Each colorSpace in the document will have an instance of this class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ICachedColorSpace
The color(package private) PdfName
The color name that appears in the document body stream(package private) PdfIndirectReference
The indirect reference to this color -
Constructor Summary
ConstructorsConstructorDescriptionColorDetails
(PdfName colorName, PdfIndirectReference indirectReference, ICachedColorSpace scolor) Each spot color used in a document has an instance of this class. -
Method Summary
Modifier and TypeMethodDescription(package private) PdfName
Gets the color name as it appears in the document body.Gets the indirect reference to this color.getPdfObject
(PdfWriter writer) Gets theSpotColor
object.
-
Field Details
-
indirectReference
PdfIndirectReference indirectReferenceThe indirect reference to this color -
colorSpaceName
PdfName colorSpaceNameThe color name that appears in the document body stream -
colorSpace
ICachedColorSpace colorSpaceThe color
-
-
Constructor Details
-
ColorDetails
ColorDetails(PdfName colorName, PdfIndirectReference indirectReference, ICachedColorSpace scolor) Each spot color used in a document has an instance of this class.- Parameters:
colorName
- the color nameindirectReference
- the indirect reference to the fontscolor
- thePDfSpotColor
-
-
Method Details
-
getIndirectReference
Gets the indirect reference to this color.- Returns:
- the indirect reference to this color
-
getColorSpaceName
PdfName getColorSpaceName()Gets the color name as it appears in the document body.- Returns:
- the color name
-
getPdfObject
Gets theSpotColor
object.- Returns:
- the
PdfSpotColor
-