ExtGState

Overview

ExtGState is a class in Aspose.PDF FOSS for Java.

Extended graphics state parameter dictionary (ISO 32000-1:2008, §8.4.5, Table 58).

This class provides 13 methods for working with ExtGState objects in Java programs. Available methods include: ExtGState, getBlendMode, getFont, getLineCap, getLineJoin, getLineWidth, getMiterLimit, getNonStrokingAlpha, getNonStrokingOverprint, getOverprint, getPdfDictionary, getSoftMask, and 1 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: blendMode, font, lineCap, lineJoin, lineWidth, miterLimit, and 6 more.

Properties

NameTypeAccessDescription
strokingAlphadoubleReadReturns the stroking alpha constant (/CA).
nonStrokingAlphadoubleReadReturns the non-stroking alpha constant (/ca).
blendModeStringReadReturns the blend mode (/BM).
softMaskPdfBaseReadReturns the soft mask (/SMask) value — may be PdfName(“None”) or PdfDictionary.
lineWidthdoubleReadReturns the line width (/LW), or -1 if not set.
lineCapintReadReturns the line cap style (/LC), or -1 if not set.
lineJoinintReadReturns the line join style (/LJ), or -1 if not set.
miterLimitdoubleReadReturns the miter limit (/ML), or -1 if not set.
fontPdfArrayReadReturns the font entry (/Font) — [font size] array, or null.
overprintbooleanReadReturns the overprint flag (/OP).
nonStrokingOverprintbooleanReadReturns the non-stroking overprint flag (/op).
pdfDictionaryPdfDictionaryReadReturns the underlying PDF dictionary.

Methods

SignatureDescription
ExtGState(dict: PdfDictionary)Creates an ExtGState from a graphics state parameter dictionary.
getStrokingAlpha()doubleReturns the stroking alpha constant (/CA).
getNonStrokingAlpha()doubleReturns the non-stroking alpha constant (/ca).
getBlendMode()StringReturns the blend mode (/BM).
getSoftMask()PdfBaseReturns the soft mask (/SMask) value — may be PdfName(“None”) or PdfDictionary.
getLineWidth()doubleReturns the line width (/LW), or -1 if not set.
getLineCap()intReturns the line cap style (/LC), or -1 if not set.
getLineJoin()intReturns the line join style (/LJ), or -1 if not set.
getMiterLimit()doubleReturns the miter limit (/ML), or -1 if not set.
getFont()PdfArrayReturns the font entry (/Font) — [font size] array, or null.
getOverprint()booleanReturns the overprint flag (/OP).
getNonStrokingOverprint()booleanReturns the non-stroking overprint flag (/op).
getPdfDictionary()PdfDictionaryReturns the underlying PDF dictionary.

See Also

 English