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 intA boolean operator.static final intA boolean operator.static final intA boolean operator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(float[] values) Adds an array offloatvalues to end of thePdfArray.booleanadd(int[] values) Adds an array ofintvalues to end of thePdfArray.voidInserts the specified element at the specified position.booleanAdds aPdfObjectto the end of thePdfArray.voidInserts aPdfObjectat 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, toStringMethods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:PdfArrayInserts 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:PdfArrayAdds aPdfObjectto the end of thePdfArray. ThePdfObjectwill be the last element. -
addFirst
Description copied from class:PdfArrayInserts aPdfObjectat the beginning of thePdfArray. ThePdfObjectwill 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:PdfArrayAdds an array offloatvalues to end of thePdfArray. The values will be the last elements. Thefloatvalues are internally converted toPdfNumberobjects. -
add
public boolean add(int[] values) Description copied from class:PdfArrayAdds an array ofintvalues to end of thePdfArray. The values will be the last elements. Theintvalues are internally converted toPdfNumberobjects.
-