Class PdfVisibilityExpression

All Implemented Interfaces:
Serializable, Iterable<PdfObject>

public class PdfVisibilityExpression extends PdfArray
An array specifying a visibility expression, used to compute visibility of content based on a set of optional content groups.
Since:
5.0.2
See Also:
  • Field Details

  • Constructor Details

    • PdfVisibilityExpression

      public PdfVisibilityExpression(int type)
      Creates a visibility expression.
      Parameters:
      type - should be AND, OR, or NOT
  • Method Details

    • add

      public void add(int index, PdfObject element)
      Description copied from class: PdfArray
      Inserts the specified element at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
      Overrides:
      add in class PdfArray
      Parameters:
      index - The index at which the specified element is to be inserted
      element - The element to be inserted
      See Also:
    • add

      public boolean add(PdfObject object)
      Description copied from class: PdfArray
      Adds a PdfObject to the end of the PdfArray. The PdfObject will be the last element.
      Overrides:
      add in class PdfArray
      Parameters:
      object - PdfObject to add
      Returns:
      always true
      See Also:
    • addFirst

      public void addFirst(PdfObject object)
      Description copied from class: PdfArray
      Inserts a PdfObject at the beginning of the PdfArray. The PdfObject will be the first element, any other elements will be shifted to the right (adds one to their indices).
      Overrides:
      addFirst in class PdfArray
      Parameters:
      object - The PdfObject to add
      See Also:
    • add

      public boolean add(float[] values)
      Description copied from class: PdfArray
      Adds an array of float values to end of the PdfArray. The values will be the last elements. The float values are internally converted to PdfNumber objects.
      Overrides:
      add in class PdfArray
      Parameters:
      values - An array of float values to add
      Returns:
      always true
      See Also:
    • add

      public boolean add(int[] values)
      Description copied from class: PdfArray
      Adds an array of int values to end of the PdfArray. The values will be the last elements. The int values are internally converted to PdfNumber objects.
      Overrides:
      add in class PdfArray
      Parameters:
      values - An array of int values to add
      Returns:
      always true
      See Also: