Class ColorDetails
java.lang.Object
com.gitlab.pdftk_java.com.lowagie.text.pdf.ColorDetails
Each spotcolor in the document will have an instance of this class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) PdfNameThe color name that appears in the document body stream(package private) PdfIndirectReferenceThe indirect reference to this color(package private) PdfSpotColorThe color -
Constructor Summary
ConstructorsConstructorDescriptionColorDetails(PdfName colorName, PdfIndirectReference indirectReference, PdfSpotColor scolor) Each spot color used in a document has an instance of this class. -
Method Summary
Modifier and TypeMethodDescription(package private) PdfNameGets the color name as it appears in the document body.(package private) PdfIndirectReferenceGets the indirect reference to this color.(package private) PdfObjectgetSpotColor(PdfWriter writer) Gets theSpotColorobject.
-
Field Details
-
indirectReference
PdfIndirectReference indirectReferenceThe indirect reference to this color -
colorName
PdfName colorNameThe color name that appears in the document body stream -
spotcolor
PdfSpotColor spotcolorThe color
-
-
Constructor Details
-
ColorDetails
ColorDetails(PdfName colorName, PdfIndirectReference indirectReference, PdfSpotColor 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
PdfIndirectReference getIndirectReference()Gets the indirect reference to this color.- Returns:
- the indirect reference to this color
-
getColorName
PdfName getColorName()Gets the color name as it appears in the document body.- Returns:
- the color name
-
getSpotColor
Gets theSpotColorobject.- Returns:
- the
PdfSpotColor - Throws:
IOException
-