Class PdfRedactAnnotation


public class PdfRedactAnnotation extends PdfMarkupAnnotation
  • Constructor Details

  • Method Details

    • getSubtype

      public PdfName getSubtype()
      Description copied from class: PdfAnnotation
      Gets a PdfName which value is a subtype of this annotation. See ISO-320001 12.5.6, "Annotation Types" for the reference to the possible types.
      Specified by:
      getSubtype in class PdfAnnotation
      Returns:
      subtype of this annotation.
    • getDefaultAppearance

      public PdfString getDefaultAppearance()
      The default appearance string that shall be used in formatting the text. See ISO-32001 12.7.3.3, "Variable Text".
      Returns:
      a PdfString that specifies the default appearance, or null if default appereance is not specified.
    • setDefaultAppearance

      public PdfRedactAnnotation setDefaultAppearance (PdfString appearanceString)
      The default appearance string that shall be used in formatting the text. See ISO-32001 12.7.3.3, "Variable Text".
      Parameters:
      appearanceString - a PdfString that specifies the default appearance.
      Returns:
      this PdfMarkupAnnotation instance.+
    • setDefaultAppearance

      public PdfRedactAnnotation setDefaultAppearance (AnnotationDefaultAppearance da)
    • setOverlayText

      public PdfRedactAnnotation setOverlayText (PdfString text)
    • getOverlayText

      public PdfString getOverlayText()
    • setRedactRolloverAppearance

      public PdfRedactAnnotation setRedactRolloverAppearance (PdfStream stream)
    • getRedactRolloverAppearance

      public PdfStream getRedactRolloverAppearance()
    • setRepeat

      public PdfRedactAnnotation setRepeat (PdfBoolean repeat)
    • getRepeat

      public PdfBoolean getRepeat()
    • getQuadPoints

      public PdfArray getQuadPoints()
      An array of 8 × n numbers specifying the coordinates of n quadrilaterals in default user space. Quadrilaterals are used to define the content region that is intended to be removed for a redaction annotation.
      Returns:
      an PdfArray of 8 × n numbers specifying the coordinates of n quadrilaterals.
    • setQuadPoints

      public PdfRedactAnnotation setQuadPoints (PdfArray quadPoints)
      Sets n quadrilaterals in default user space by passing an PdfArray of 8 × n numbers. Quadrilaterals are used to define the content region that is intended to be removed for a redaction annotation.
      Parameters:
      quadPoints - an PdfArray of 8 × n numbers specifying the coordinates of n quadrilaterals.
      Returns:
      this PdfRedactAnnotation instance.
    • getInteriorColor

      public Color getInteriorColor()
      The interior color which is used to fill the redacted region after the affected content has been removed.
      Returns:
      Color of either DeviceGray, DeviceRgb or DeviceCmyk type which defines interior color of the annotation, or null if interior color is not specified.
    • setInteriorColor

      public PdfRedactAnnotation setInteriorColor (PdfArray interiorColor)
      An array of numbers in the range 0.0 to 1.0 specifying the interior color which is used to fill the redacted region after the affected content has been removed.
      Parameters:
      interiorColor - a PdfArray of numbers in the range 0.0 to 1.0. The number of array elements determines the colour space in which the colour is defined: 0 - No colour, transparent; 1 - DeviceGray, 3 - DeviceRGB, 4 - DeviceCMYK. For the PdfRedactAnnotation number of elements shall be equal to 3 (which defines DeviceRGB colour space).
      Returns:
      this PdfRedactAnnotation instance.
    • setInteriorColor

      public PdfRedactAnnotation setInteriorColor (float[] interiorColor)
      An array of numbers in the range 0.0 to 1.0 specifying the interior color which is used to fill the redacted region after the affected content has been removed.
      Parameters:
      interiorColor - an array of floats in the range 0.0 to 1.0.
      Returns:
      this PdfRedactAnnotation instance.
    • getJustification

      public int getJustification()
      A code specifying the form of quadding (justification) that is used in displaying the annotation's text: 0 - Left-justified, 1 - Centered, 2 - Right-justified. Default value: 0 (left-justified).
      Returns:
      a code specifying the form of quadding (justification), returns the default value if not explicitly specified.
    • setJustification

      public PdfRedactAnnotation setJustification (int justification)
      A code specifying the form of quadding (justification) that is used in displaying the annotation's text: 0 - Left-justified, 1 - Centered, 2 - Right-justified. Default value: 0 (left-justified).
      Parameters:
      justification - a code specifying the form of quadding (justification).
      Returns:
      this PdfRedactAnnotation instance.