public class CanvasGraphicsState extends Object
PdfExtGState class and PdfCanvas#setExtGState() method for setting extended graphics properties.| Modifier | Constructor and Description |
|---|---|
protected |
CanvasGraphicsState()
Internal empty and default constructor.
|
|
CanvasGraphicsState(CanvasGraphicsState source)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAlphaIsShape()
Gets the current Alpha is shape flag, see ISO 32000-1, 11.3.7.2 Source Shape and Opacity and
11.6.4.3 Mask Shape and Opacity,
PdfExtGState.getAlphaSourceFlag() . |
boolean |
getAutomaticStrokeAdjustment()
Gets the current Apply Automatic Stroke Adjustment flag, see ISO 32000-1, 10.6.5 Automatic Stroke Adjustment,
PdfExtGState.getAutomaticStrokeAdjustmentFlag(). |
PdfObject |
getBlackGenerationFunction()
Gets the current Black-generation function, see ISO32000-1, 11.7.5.3 Rendering Intent and Colour Conversions and
Table 58 – Entries in a Graphics State Parameter Dictionary,
PdfExtGState.getBlackGenerationFunction(). |
PdfObject |
getBlackGenerationFunction2()
Gets the current overruling Black-generation function,
see ISO32000-1, 11.7.5.3 Rendering Intent and Colour Conversions and
Table 58 – Entries in a Graphics State Parameter Dictionary,
PdfExtGState.getBlackGenerationFunction2(). |
PdfObject |
getBlendMode()
Gets the current Blend Mode, see ISO 32000-1, 11.3.5 Blend Mode and
11.6.3 Specifying Blending Colour Space and Blend Mode,
PdfExtGState.getBlendMode(). |
float |
getCharSpacing()
Gets the current Character Spacing, see ISO-320001, 9.3.2 Character Spacing,
PdfCanvas.setCharacterSpacing(float). |
Matrix |
getCtm() |
PdfArray |
getDashPattern()
Gets line dash pattern value,
D key, see ISO-320001, 8.4.3.6 Line Dash Pattern,
PdfExtGState.setDashPattern(com.itextpdf.kernel.pdf.PdfArray). |
Color |
getFillColor()
Gets the current fill color.
|
float |
getFillOpacity()
Gets the current Fill Opacity value, see ISO 32000-1, 11.3.7.2 Source Shape and Opacity
and 11.6.4.4 Constant Shape and Opacity,
PdfExtGState.getFillOpacity(). |
boolean |
getFillOverprint()
Get the Fill Overprint flag, see ISO 32000-1, 8.6.7 Overprint Control
and 11.7.4.5 Summary of Overprinting Behaviour,
PdfExtGState.getFillOverprintFlag(). |
float |
getFlatnessTolerance()
Gets the current Flatness Tolerance, see ISO-320001, 10.6.2 Flatness Tolerance,
PdfCanvas.setFlatnessTolerance(float). |
PdfFont |
getFont()
Gets the current
PdfFont. |
float |
getFontSize()
Gets the font size.
|
PdfObject |
getHalftone()
Gets the current halftone ,
see ISO32000-1, 10.5 Halftones and Table 58 – Entries in a Graphics State Parameter Dictionary,
PdfExtGState.getHalftone(). |
float |
getHorizontalScaling()
Gets the current Horizontal Scaling percentage, see ISO-320001, 9.3.4 Horizontal Scaling.
|
PdfObject |
getHTP()
Gets the current Halftone Phase, see Portable Document Format Reference Manual Version 1.2,
7.12 Extended graphics states and PostScript Language Reference Manual, Second Edition,
7.3.3, Halftone Phase.
|
float |
getLeading()
Gets the current Leading, see ISO-320001, 9.3.5 Leading,
PdfCanvas.setLeading(float). |
int |
getLineCapStyle()
Gets the current line cap style, see ISO-320001, 8.4.3.3 Line Cap Style.
|
int |
getLineJoinStyle()
Gets the current line join style, see ISO-320001, 8.4.3.4 Line Join Style.
|
float |
getLineWidth()
Gets the current line width.
|
float |
getMiterLimit()
Gets the current miter limit, see ISO-320001, 8.4.3.5 Miter Limit.
|
int |
getOverprintMode()
Get the Overprint Mode, see ISO 32000-1, 8.6.7 Overprint Control
and 11.7.4.5 Summary of Overprinting Behaviour,
PdfExtGState.getOverprintMode(). |
PdfName |
getRenderingIntent()
Gets the rendering intent, see
PdfExtGState.getRenderingIntent(). |
Float |
getSmoothnessTolerance()
Gets the current Smoothness Tolerance,
see ISO32000-1, 10.6.3 Smoothness Tolerance and Table 58 – Entries in a Graphics State Parameter Dictionary,
PdfExtGState.getSmothnessTolerance(). |
PdfObject |
getSoftMask()
Gets the current Soft Mask, see ISO 32000-1, 11.3.7.2 Source Shape and Opacity,
11.6.4.3 Mask Shape and Opacity and 11.6.5.2 Soft-Mask Dictionaries,
PdfExtGState.getSoftMask(). |
Color |
getStrokeColor()
Gets the current stroke color.
|
float |
getStrokeOpacity()
Gets the current Stroke Opacity value, see ISO 32000-1, 11.3.7.2 Source Shape and Opacity
and 11.6.4.4 Constant Shape and Opacity,
PdfExtGState.getStrokeOpacity(). |
boolean |
getStrokeOverprint()
Get the Stroke Overprint flag, see ISO 32000-1, 8.6.7 Overprint Control
and 11.7.4.5 Summary of Overprinting Behaviour,
PdfExtGState.getStrokeOverprintFlag(). |
boolean |
getTextKnockout()
Gets the current Text Knockout flag, see ISO 32000-1, 9.3.8 Text Knockout,
PdfExtGState.getTextKnockoutFlag(). |
int |
getTextRenderingMode()
Gets the current Text Rendering Mode, see ISO-320001, 9.3.6 Text Rendering Mode,
PdfCanvas.setTextRenderingMode(int). |
float |
getTextRise()
Get the current Text Rise, see ISO-320001, 9.3.7 Text Rise,
PdfCanvas.setTextRise(float). |
PdfObject |
getTransferFunction()
Gets the current Transfer function,
see ISO32000-1, 11.7.5.3 Rendering Intent and Colour Conversions and
Table 58 – Entries in a Graphics State Parameter Dictionary,
PdfExtGState.getTransferFunction(). |
PdfObject |
getTransferFunction2()
Gets the current overruling transer function,
see ISO32000-1, 11.7.5.3 Rendering Intent and Colour Conversions and
Table 58 – Entries in a Graphics State Parameter Dictionary,
PdfExtGState.getTransferFunction2(). |
PdfObject |
getUnderColorRemovalFunction()
Gets the current Undercolor-removal function,
see ISO32000-1, 11.7.5.3 Rendering Intent and Colour Conversions and
Table 58 – Entries in a Graphics State Parameter Dictionary
PdfExtGState.getUndercolorRemovalFunction(). |
PdfObject |
getUnderColorRemovalFunction2()
Gets the current overruling Undercolor-removal function,
see ISO32000-1, 11.7.5.3 Rendering Intent and Colour Conversions and
Table 58 – Entries in a Graphics State Parameter Dictionary,
PdfExtGState.getUndercolorRemovalFunction2(). |
float |
getWordSpacing()
Gets the current Word Spacing, see ISO-320001, 9.3.3 Word Spacing,
PdfCanvas.setWordSpacing(float) |
void |
setCharSpacing(float characterSpacing)
Sets the Character Spacing, see ISO-320001, 9.3.2 Character Spacing,
PdfCanvas.setCharacterSpacing(float) |
void |
setDashPattern(PdfArray dashPattern)
Sets line dash pattern value,
D key, see ISO-320001, 8.4.3.6 Line Dash Pattern,
PdfExtGState.setDashPattern(com.itextpdf.kernel.pdf.PdfArray). |
void |
setFillColor(Color fillColor)
Sets the current fill
color. |
void |
setFlatnessTolerance(float flatnessTolerance)
Sets the current Flatness Tolerance, see ISO-320001, 10.6.2 Flatness Tolerance,
PdfCanvas.setFlatnessTolerance(float). |
void |
setFont(PdfFont font)
Sets the current
PdfFont. |
void |
setFontSize(float fontSize)
Sets the font size.
|
void |
setHorizontalScaling(float scale)
Sets the Horizontal Scaling percentage for text, see ISO-320001, 9.3.4 Horizontal Scaling,
PdfCanvas.setHorizontalScaling(float). |
void |
setLeading(float leading)
Sets the Leading, see ISO-320001, 9.3.5 Leading,
PdfCanvas.setLeading(float). |
void |
setLineCapStyle(int lineCapStyle)
Sets the current line cap style, see ISO-320001, 8.4.3.3 Line Cap Style.
|
void |
setLineJoinStyle(int lineJoinStyle)
Sets the current line join style, see ISO-320001, 8.4.3.4 Line Join Style.
|
void |
setLineWidth(float lineWidth)
Sets the current line width.
|
void |
setMiterLimit(float miterLimit)
Sets the current miter limit, see ISO-320001, 8.4.3.5 Miter Limit.
|
void |
setRenderingIntent(PdfName renderingIntent)
Sets the rendering intent, see
PdfExtGState.getRenderingIntent(). |
void |
setStrokeColor(Color strokeColor)
Sets the current stroke
color. |
void |
setTextRenderingMode(int textRenderingMode)
Sets the current Text Rendering Mode, see ISO-320001, 9.3.6 Text Rendering Mode,
PdfCanvas.setTextRenderingMode(int). |
void |
setTextRise(float textRise)
Set the current Text Rise, see ISO-320001, 9.3.7 Text Rise
PdfCanvas.setTextRise(float). |
void |
setWordSpacing(float wordSpacing)
Sets the Word Spacing, see ISO-320001, 9.3.3 Word Spacing,
PdfCanvas.setWordSpacing(float). |
void |
updateCtm(float a,
float b,
float c,
float d,
float e,
float f)
Updates current transformation matrix.
|
void |
updateCtm(Matrix newCtm)
Updates current transformation matrix.
|
void |
updateFromExtGState(PdfDictionary extGState)
Updates this object with the values from a dictionary.
|
void |
updateFromExtGState(PdfExtGState extGState)
Updates current graphic state with values from extended graphic state dictionary.
|
protected CanvasGraphicsState()
public CanvasGraphicsState(CanvasGraphicsState source)
source - the Graphics State to copy frompublic void updateFromExtGState(PdfDictionary extGState)
extGState - the dictionary containing source parameterspublic Matrix getCtm()
public void updateCtm(float a,
float b,
float c,
float d,
float e,
float f)
a - element at (1,1) of the transformation matrixb - element at (1,2) of the transformation matrixc - element at (2,1) of the transformation matrixd - element at (2,2) of the transformation matrixe - element at (3,1) of the transformation matrixf - element at (3,2) of the transformation matrixpublic void updateCtm(Matrix newCtm)
newCtm - new current transformation matrix.public Color getFillColor()
colorpublic void setFillColor(Color fillColor)
color.fillColor - The new fill color.public Color getStrokeColor()
colorpublic void setStrokeColor(Color strokeColor)
color.strokeColor - The new stroke color.public float getLineWidth()
public void setLineWidth(float lineWidth)
lineWidth - The new line width.public int getLineCapStyle()
for more info.public void setLineCapStyle(int lineCapStyle)
lineCapStyle - The new cap style value.for more info.public int getLineJoinStyle()
for more info.public void setLineJoinStyle(int lineJoinStyle)
lineJoinStyle - The new line join style value.for more info.public float getMiterLimit()
for more info.public void setMiterLimit(float miterLimit)
miterLimit - The new miter limit value.for more info.public PdfArray getDashPattern()
D key, see ISO-320001, 8.4.3.6 Line Dash Pattern,
PdfExtGState.setDashPattern(com.itextpdf.kernel.pdf.PdfArray).PdfArray, that represents line dash pattern.public void setDashPattern(PdfArray dashPattern)
D key, see ISO-320001, 8.4.3.6 Line Dash Pattern,
PdfExtGState.setDashPattern(com.itextpdf.kernel.pdf.PdfArray).dashPattern - a PdfArray, that represents line dash pattern.public PdfName getRenderingIntent()
PdfExtGState.getRenderingIntent().public void setRenderingIntent(PdfName renderingIntent)
PdfExtGState.getRenderingIntent().renderingIntent - the rendering intent name.public float getFontSize()
public void setFontSize(float fontSize)
fontSize - The new font size.public void setFont(PdfFont font)
PdfFont.font - The new PdfFont.public int getTextRenderingMode()
PdfCanvas.setTextRenderingMode(int).public void setTextRenderingMode(int textRenderingMode)
PdfCanvas.setTextRenderingMode(int).textRenderingMode - The new text rendering mode.public float getTextRise()
PdfCanvas.setTextRise(float).public void setTextRise(float textRise)
PdfCanvas.setTextRise(float).textRise - The new text rise value.public float getFlatnessTolerance()
PdfCanvas.setFlatnessTolerance(float).public void setFlatnessTolerance(float flatnessTolerance)
PdfCanvas.setFlatnessTolerance(float).flatnessTolerance - The new flatness tolerance value.public void setWordSpacing(float wordSpacing)
PdfCanvas.setWordSpacing(float).wordSpacing - The new word spacing value.public float getWordSpacing()
PdfCanvas.setWordSpacing(float)public void setCharSpacing(float characterSpacing)
PdfCanvas.setCharacterSpacing(float)characterSpacing - The new character spacing value.public float getCharSpacing()
PdfCanvas.setCharacterSpacing(float).public float getLeading()
PdfCanvas.setLeading(float).public void setLeading(float leading)
PdfCanvas.setLeading(float).leading - The new leading value.public float getHorizontalScaling()
PdfCanvas.setHorizontalScaling(float).public void setHorizontalScaling(float scale)
PdfCanvas.setHorizontalScaling(float).scale - The new horizontal scaling factor.public boolean getStrokeOverprint()
PdfExtGState.getStrokeOverprintFlag().public boolean getFillOverprint()
PdfExtGState.getFillOverprintFlag().public int getOverprintMode()
PdfExtGState.getOverprintMode().public PdfObject getBlackGenerationFunction()
PdfExtGState.getBlackGenerationFunction().public PdfObject getBlackGenerationFunction2()
PdfExtGState.getBlackGenerationFunction2().public PdfObject getUnderColorRemovalFunction()
PdfExtGState.getUndercolorRemovalFunction().public PdfObject getUnderColorRemovalFunction2()
PdfExtGState.getUndercolorRemovalFunction2().public PdfObject getTransferFunction()
PdfExtGState.getTransferFunction().public PdfObject getTransferFunction2()
PdfExtGState.getTransferFunction2().public PdfObject getHalftone()
PdfExtGState.getHalftone().public Float getSmoothnessTolerance()
PdfExtGState.getSmothnessTolerance().public boolean getAutomaticStrokeAdjustment()
PdfExtGState.getAutomaticStrokeAdjustmentFlag().public PdfObject getBlendMode()
PdfExtGState.getBlendMode().public PdfObject getSoftMask()
PdfExtGState.getSoftMask().public float getStrokeOpacity()
PdfExtGState.getStrokeOpacity().public float getFillOpacity()
PdfExtGState.getFillOpacity().public boolean getAlphaIsShape()
PdfExtGState.getAlphaSourceFlag() .public boolean getTextKnockout()
PdfExtGState.getTextKnockoutFlag().public PdfObject getHTP()
public void updateFromExtGState(PdfExtGState extGState)
extGState - the wrapper around the extended graphic state dictionaryCopyright © 1998–2024 Apryse Group NV. All rights reserved.