Table of Contents

Class PdfTextArray

Namespace
iText.Kernel.Pdf
Assembly
itext.kernel.dll

PdfTextArray defines an array with displacements and PdfString -objects.

public class PdfTextArray : PdfArray, IEnumerable<PdfObject>, IEnumerable
Inheritance
PdfTextArray
Implements
Inherited Members

Remarks

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.

Constructors

PdfTextArray()

public PdfTextArray()

Methods

Add(byte[])

public virtual bool Add(byte[] text)

Parameters

text byte[]

Returns

bool

Add(float)

public virtual bool Add(float number)

Parameters

number float

Returns

bool

Add(string)

protected virtual bool Add(string text)

Parameters

text string

Returns

bool

Add(string, PdfFont)

public virtual bool Add(string text, PdfFont font)

Parameters

text string
font PdfFont

Returns

bool

Add(PdfObject)

public override void Add(PdfObject pdfObject)

Parameters

pdfObject PdfObject

AddAll(ICollection<PdfObject>)

Adds the Collection of PdfObjects.

public override void AddAll(ICollection<PdfObject> c)

Parameters

c ICollection<PdfObject>

the Collection of PdfObjects to be added

AddAll(PdfArray)

Adds content of the PdfArray.

public override void AddAll(PdfArray a)

Parameters

a PdfArray

the PdfArray to be added