Class PdfGState


  • public class PdfGState
    extends PdfDictionary
    The graphic state dictionary.
    • Field Detail

      • BM_NORMAL

        public static final PdfName BM_NORMAL
        A possible blend mode
      • BM_COMPATIBLE

        public static final PdfName BM_COMPATIBLE
        A possible blend mode
    • Constructor Detail

      • PdfGState

        public PdfGState()
    • Method Detail

      • setOverPrintStroking

        public void setOverPrintStroking​(boolean ov)
        Sets the flag whether to apply overprint for stroking.
        Parameters:
        ov - boolean to set
      • setOverPrintNonStroking

        public void setOverPrintNonStroking​(boolean ov)
        Sets the flag whether to apply overprint for non stroking painting operations.
        Parameters:
        ov - overPrint to set
      • setOverPrintMode

        public void setOverPrintMode​(int ov)
        Sets the flag whether to toggle knockout behavior for overprinted objects.
        Parameters:
        ov - - accepts 0 or 1
      • setStrokeOpacity

        public void setStrokeOpacity​(float n)
        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:
        n - opacity to set
      • setFillOpacity

        public void setFillOpacity​(float n)
        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:
        n - opacity to set
      • setAlphaIsShape

        public void setAlphaIsShape​(boolean v)
        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:
        v - set the shape
      • setTextKnockout

        public void setTextKnockout​(boolean v)
        Determines the behavior of overlapping glyphs within a text object in the transparent imaging model.
        Parameters:
        v - set if knockout
      • setBlendMode

        public void setBlendMode​(PdfName bm)
        The current blend mode to be used in the transparent imaging model.
        Parameters:
        bm - set if blend mode