Method GetText
GetText(TextOutputMode)
Aggregate the page’s textual content using the specified TextOutputMode.
public string GetText(TextOutputMode mode)
Parameters
mode
TextOutputModeThe output mode controlling how lines, columns, and paragraphs are reconstructed.
Returns
- string
A plain-text string representing the page’s content formatted according to
mode
.
Examples
// 1) Preserve columns (tables, multi-column layouts)
string grid = page.GetText(PageElement.TextOutputMode.GridAligned);
// 2) Read comfortably as flowing text
string flow = page.GetText(PageElement.TextOutputMode.ParagraphFlow);
// 3) Keep one line per detected line, no spacing heuristics
string raw = page.GetText(PageElement.TextOutputMode.RawLines);
Remarks
Internally, the method detects lines and/or paragraphs in normalized “view space” (deskewed and de-rotated) to improve geometric stability. Output uses Unix line endings and trims trailing whitespace.