public class PdfTextArray extends Object
PdfTextArray
defines an array with displacements and PdfString
-objects.
A TextArray
is used with the operator TJ in PdfText
.
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.
Modifier and Type | Field and Description |
---|---|
(package private) ArrayList<Object> |
arrayList |
private Float |
lastNum |
private String |
lastStr |
Constructor and Description |
---|
PdfTextArray() |
PdfTextArray(String str) |
Modifier and Type | Method and Description |
---|---|
void |
add(float number) |
void |
add(PdfNumber number)
Adds a
PdfNumber to the PdfArray . |
void |
add(String str) |
(package private) ArrayList<Object> |
getArrayList() |
private void |
replaceLast(Object obj) |
public PdfTextArray(String str)
public PdfTextArray()
public void add(PdfNumber number)
PdfNumber
to the PdfArray
.number
- displacement of the stringpublic void add(float number)
ArrayList<Object> getArrayList()
private void replaceLast(Object obj)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses