Class PdfVisibilityExpression

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    Serialized Form
    • Constructor Detail

      • PdfVisibilityExpression

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

      • 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:
        PdfArray.add(int, com.itextpdf.text.pdf.PdfObject)
      • 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:
        PdfArray.add(float[])
      • 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:
        PdfArray.add(int[])