public class PdfTextArray extends PdfArray
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. "add( 50 ); add( -50 );" will REMOVE the combined zero from the array.
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 and Description |
---|
PdfTextArray() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(byte[] text) |
boolean |
add(float number) |
void |
add(PdfObject pdfObject) |
protected boolean |
add(String text) |
boolean |
add(String text, PdfFont font) |
void |
addAll(Collection<PdfObject> c)
Adds the Collection of PdfObjects.
|
void |
addAll(PdfArray a)
Adds content of the PdfArray .
|
add, clear, contains, copyContent, copyTo, copyTo, directIterator, get, get, getAsArray, getAsBoolean, getAsDictionary, getAsName, getAsNumber, getAsStream, getAsString, getType, indexOf, isEmpty, iterator, makeIndirect, makeIndirect, newInstance, releaseContent, remove, remove, set, size, subList, toDoubleArray, toFloatArray, toIntArray, toLongArray, toRectangle, toString
checkState, clearState, clone, flush, flush, getIndirectReference, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isStream, isString, release, setIndirectReference, setModified, setState
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public void addAll(PdfArray a)
PdfArray
.
addAll
in class PdfArray
a
- the PdfArray
to be added
List.addAll(java.util.Collection)
public void addAll(Collection<PdfObject> c)
addAll
in class PdfArray
c
- the Collection of PdfObjects to be added
List.addAll(java.util.Collection)
public boolean add(float number)
public boolean add(byte[] text)
protected boolean add(String text)
Copyright © 1998–2018 iText Group NV. All rights reserved.