Package com.itextpdf.kernel.pdf
Class PdfTextArray
java.lang.Object
com.itextpdf.kernel.pdf.PdfObject
com.itextpdf.kernel.pdf.PdfArray
com.itextpdf.kernel.pdf.PdfTextArray
PdfTextArray
defines an array with displacements and PdfString
-objects.
A PdfTextArray
is used with the operator TJ in PdfCanvas
. The first object in this array has to be a PdfString
; see reference manual version 1.3 section 8.7.5, pages 346-347. OR see reference manual version 1.6 section 5.3.2, pages 378-379. To emit a more efficient array, we consolidate repeated numbers or strings into single array entries. For example: "add( 50 ); add( -50 );" will REMOVE the combined zero from the array.
-
Field Summary
Fields inherited from class com.itextpdf.kernel.pdf.PdfObject
ARRAY, BOOLEAN, DICTIONARY, FLUSHED, FORBID_RELEASE, FREE, INDIRECT_REFERENCE, indirectReference, LITERAL, MODIFIED, MUST_BE_FLUSHED, MUST_BE_INDIRECT, NAME, NULL, NUMBER, ORIGINAL_OBJECT_STREAM, READ_ONLY, READING, STREAM, STRING, UNENCRYPTED
-
Constructor Summary
-
Method Summary
Methods inherited from class com.itextpdf.kernel.pdf.PdfArray
add, clear, contains, copyContent, get, get, getAsArray, getAsBoolean, getAsDictionary, getAsName, getAsNumber, getAsStream, getAsString, getType, indexOf, isEmpty, iterator, newInstance, releaseContent, remove, remove, set, size, subList, toBooleanArray, toDoubleArray, toFloatArray, toIntArray, toList, toLongArray, toRectangle, toString
Methods inherited from class com.itextpdf.kernel.pdf.PdfObject
checkState, clearState, clone, clone, copyContent, copyTo, copyTo, copyTo, copyTo, flush, flush, getIndirectReference, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isReleaseForbidden, isStream, isString, makeIndirect, makeIndirect, release, setIndirectReference, setModified, setState
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PdfTextArray
public PdfTextArray()
-
-
Method Details
-
add
-
addAll
Adds content of thePdfArray
. -
addAll
Adds the Collection of PdfObjects. -
add
public boolean add(float number) -
add
-
add
public boolean add(byte[] text) -
add
-