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
FieldsFields inherited from class 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
Constructors -
Method Summary
Methods inherited from class 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, toStringMethods inherited from class PdfObject
checkState, clearState, clone, clone, containsIndirectReference, copyContent, copyTo, copyTo, copyTo, copyTo, equalContent, flush, flush, getIndirectReference, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isReleaseForbidden, isStream, isString, makeIndirect, makeIndirect, processCopying, processCopying, release, setIndirectReference, setModified, setStateMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
lastNumber
private float lastNumber -
lastString
-
-
Constructor Details
-
PdfTextArray
public PdfTextArray()
-
-
Method Details