Method ShowText

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

ShowText(string)

Shows a line of text at the current text position in the current font (operator Tj, or TJ when kerning or mark positioning adjusts the spacing, with text rise Ts for raised or lowered marks). Right-to-left and mixed-direction text is reordered for display with the Unicode Bidirectional Algorithm, TrueType text is shaped with the font's substitutions (such as joined Arabic letters and ligatures), and where the glyphs no longer read as the text, it is marked with its reading order (ActualText) so that it copies and extracts correctly.

public ContentStreamWriter ShowText(string text)

Parameters

text string

The text. With a standard font it must be encodable in WinAnsiEncoding; with a TrueType font every character needs a glyph.

Returns

ContentStreamWriter

Exceptions

InvalidOperationException

Called outside a text object, or before SetFont(PdfFont, double).

ArgumentException

The font cannot show a character of text.