| Category | Text extraction (Lumas extension) |
|---|
Purpose — Decode the currently active output page's text directly into a TPDFStack structure (a Lumas-specific convenience shape, not part of the reference ABI's normal calling pattern for this function name).
Description — Unlike pdfExtractText, this call takes no page number — it always operates on D.ActivePageIndex (the page currently open for editing) and only on output-side content; it does not fall back to an import source. Stack.Text receives the extracted Unicode text and Stack.Count the number of text-showing runs found.
Declarations
BOOL32 __stdcall pdfGetPageText(PPDF IPDF, TPDFStack* Stack);
function pdfGetPageText(const IPDF: PPDF; var Stack: TPDFStack): LongBool; stdcall; external 'LumasPdf.dll';
TPDFStack (relevant fields; see V03 for the full record used elsewhere):
TPDFStack = record
// ...
Text: PWideChar; // Lumas extension: engine-owned, valid until the next call
Count: Cardinal; // number of show-text runs found
end;
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle with an open (active) page. |
Stack | TPDFStack* | Receives Text/Count. |
Return value — TRUE on success; FALSE if no page is currently active or its content can't be read.
See also — pdfExtractText
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Getters
pdfGetPageText
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.