API referenceText

pdfSplitPageText

Extract a page's full text as a single #10-joined string

CategoryText extraction

Purpose — Extract a page's full text as a single #10-joined string (effectively pdfExtractText with a stable return-buffer convention).

Declarations

C
const char* __stdcall pdfSplitPageText(PPDF IPDF, uint32_t PageNum);
const char* __stdcall pdfSplitPageTextA(PPDF IPDF, uint32_t PageNum);
const wchar_t* __stdcall pdfSplitPageTextW(PPDF IPDF, uint32_t PageNum);
Delphi
function pdfSplitPageTextA(const IPDF: PPDF; PageNum: Cardinal): PAnsiChar; stdcall; external 'LumasPdf.dll';
function pdfSplitPageTextW(const IPDF: PPDF; PageNum: Cardinal): PWideChar; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
PageNumCardinal1-based page number.

Return value — The full extracted text, or NULL if extraction failed.

See alsopdfExtractText, pdfGetTextBlockAsString

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern IntPtr pdfSplitPageTextW(IntPtr IPDF, uint PageNum);
public static extern IntPtr pdfSplitPageText(IntPtr IPDF, uint PageNum);
public static extern IntPtr pdfSplitPageTextA(IntPtr IPDF, uint PageNum);
Area
Text
Category

Core

Exported names

pdfSplitPageTextW pdfSplitPageText pdfSplitPageTextA

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.