Package com.itextpdf.text.pdf
Class PdfGState
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.PdfGState
- All Implemented Interfaces:
Serializable
The graphic state dictionary.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend mode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAlphaIsShape(boolean ais) The alpha source flag specifying whether the current soft mask and alpha constant are to be interpreted as shape values (true) or opacity values (false).voidsetBlendMode(PdfName bm) The current blend mode to be used in the transparent imaging model.voidsetFillOpacity(float ca) Sets the current stroking alpha constant, specifying the constant shape or constant opacity value to be used for nonstroking operations in the transparent imaging model.voidsetOverPrintMode(int opm) Sets the flag whether to toggle knockout behavior for overprinted objects.voidsetOverPrintNonStroking(boolean op) Sets the flag whether to apply overprint for non stroking painting operations.voidsetOverPrintStroking(boolean op) Sets the flag whether to apply overprint for stroking.voidSet the rendering intent, possible values are: PdfName.ABSOLUTECOLORIMETRIC, PdfName.RELATIVECOLORIMETRIC, PdfName.SATURATION, PdfName.PERCEPTUAL.voidsetStrokeOpacity(float ca) Sets the current stroking alpha constant, specifying the constant shape or constant opacity value to be used for stroking operations in the transparent imaging model.voidsetTextKnockout(boolean tk) Determines the behavior of overlapping glyphs within a text object in the transparent imaging model.voidtoPdf(PdfWriter writer, OutputStream os) Writes the PDF representation of thisPdfDictionaryas an array ofbyteto the givenOutputStream.Methods inherited from class com.itextpdf.text.pdf.PdfDictionary
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toStringMethods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Field Details
-
BM_NORMAL
A possible blend mode -
BM_COMPATIBLE
A possible blend mode -
BM_MULTIPLY
A possible blend mode -
BM_SCREEN
A possible blend mode -
BM_OVERLAY
A possible blend mode -
BM_DARKEN
A possible blend mode -
BM_LIGHTEN
A possible blend mode -
BM_COLORDODGE
A possible blend mode -
BM_COLORBURN
A possible blend mode -
BM_HARDLIGHT
A possible blend mode -
BM_SOFTLIGHT
A possible blend mode -
BM_DIFFERENCE
A possible blend mode -
BM_EXCLUSION
A possible blend mode
-
-
Constructor Details
-
PdfGState
public PdfGState()
-
-
Method Details
-
setOverPrintStroking
public void setOverPrintStroking(boolean op) Sets the flag whether to apply overprint for stroking.- Parameters:
op-
-
setOverPrintNonStroking
public void setOverPrintNonStroking(boolean op) Sets the flag whether to apply overprint for non stroking painting operations.- Parameters:
op-
-
setOverPrintMode
public void setOverPrintMode(int opm) Sets the flag whether to toggle knockout behavior for overprinted objects.- Parameters:
opm- - accepts 0 or 1
-
setStrokeOpacity
public void setStrokeOpacity(float ca) Sets the current stroking alpha constant, specifying the constant shape or constant opacity value to be used for stroking operations in the transparent imaging model.- Parameters:
ca-
-
setFillOpacity
public void setFillOpacity(float ca) Sets the current stroking alpha constant, specifying the constant shape or constant opacity value to be used for nonstroking operations in the transparent imaging model.- Parameters:
ca-
-
setAlphaIsShape
public void setAlphaIsShape(boolean ais) The alpha source flag specifying whether the current soft mask and alpha constant are to be interpreted as shape values (true) or opacity values (false).- Parameters:
ais-
-
setTextKnockout
public void setTextKnockout(boolean tk) Determines the behavior of overlapping glyphs within a text object in the transparent imaging model.- Parameters:
tk-
-
setBlendMode
The current blend mode to be used in the transparent imaging model.- Parameters:
bm-
-
setRenderingIntent
Set the rendering intent, possible values are: PdfName.ABSOLUTECOLORIMETRIC, PdfName.RELATIVECOLORIMETRIC, PdfName.SATURATION, PdfName.PERCEPTUAL.- Parameters:
ri-- Since:
- 5.0.2
-
toPdf
Description copied from class:PdfDictionaryWrites the PDF representation of thisPdfDictionaryas an array ofbyteto the givenOutputStream.- Overrides:
toPdfin classPdfDictionary- Parameters:
writer- for backwards compatibilityos- theOutputStreamto write the bytes to.- Throws:
IOException
-