Package com.itextpdf.text.pdf
Class PdfVisibilityExpression
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfArray
com.itextpdf.text.pdf.PdfVisibilityExpression
- All Implemented Interfaces:
Serializable
,Iterable<PdfObject>
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
A boolean operator.static final int
A boolean operator.static final int
A boolean operator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(float[] values) Adds an array offloat
values to end of thePdfArray
.boolean
add
(int[] values) Adds an array ofint
values to end of thePdfArray
.void
Inserts the specified element at the specified position.boolean
Adds aPdfObject
to the end of thePdfArray
.void
Inserts aPdfObject
at the beginning of thePdfArray
.Methods inherited from class com.itextpdf.text.pdf.PdfArray
asDoubleArray, asLongArray, contains, getArrayList, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getPdfObject, isEmpty, iterator, listIterator, remove, set, size, toPdf, toString
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
OR
public static final int ORA boolean operator.- See Also:
-
AND
public static final int ANDA boolean operator.- See Also:
-
NOT
public static final int NOTA boolean operator.- See Also:
-
-
Constructor Details
-
PdfVisibilityExpression
public PdfVisibilityExpression(int type) Creates a visibility expression.- Parameters:
type
- should be AND, OR, or NOT
-
-
Method Details
-
add
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). -
add
Description copied from class:PdfArray
Adds aPdfObject
to the end of thePdfArray
. ThePdfObject
will be the last element. -
addFirst
Description copied from class:PdfArray
Inserts aPdfObject
at the beginning of thePdfArray
. ThePdfObject
will be the first element, any other elements will be shifted to the right (adds one to their indices). -
add
public boolean add(float[] values) Description copied from class:PdfArray
Adds an array offloat
values to end of thePdfArray
. The values will be the last elements. Thefloat
values are internally converted toPdfNumber
objects. -
add
public boolean add(int[] values) Description copied from class:PdfArray
Adds an array ofint
values to end of thePdfArray
. The values will be the last elements. Theint
values are internally converted toPdfNumber
objects.
-