API referenceText

pdfGetWrappedTextBreakString

Same as [pdfGetWrappedText](#api-pdfgetwrappedtext), but a

CategoryText measurement

Purpose — Same as pdfGetWrappedText, but a single word wider than Width is hard-broken character by character instead of overflowing the line.

Description — At each hard-break point, the configured break marker (set via pdfSetBreakString; empty by default) is appended to the truncated line before the delimiter.

Declarations

C
const char* __stdcall pdfGetWrappedTextBreakString(PPDF IPDF, double Width, const char* Delimiter, const char* Text);
const char* __stdcall pdfGetWrappedTextBreakStringA(PPDF IPDF, double Width, const char* Delimiter, const char* Text);
const wchar_t* __stdcall pdfGetWrappedTextBreakStringW(PPDF IPDF, double Width, const wchar_t* Delimiter, const wchar_t* Text);
Delphi
function pdfGetWrappedTextBreakStringA(const IPDF: PPDF; Width: Double; Delimiter, Text: PAnsiChar): PAnsiChar; stdcall; external 'LumasPdf.dll';
function pdfGetWrappedTextBreakStringW(const IPDF: PPDF; Width: Double; Delimiter, Text: PWideChar): PWideChar; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
WidthDoubleWrap width.
DelimiterstringLine joiner.
TextstringSource text.

Return value — The wrapped, hard-broken, Delimiter-joined string.

See alsopdfGetWrappedText, pdfSetBreakString

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern IntPtr pdfGetWrappedTextBreakStringW(IntPtr IPDF, double Width, IntPtr Delimiter, IntPtr Text);
public static extern IntPtr pdfGetWrappedTextBreakString(IntPtr IPDF, double Width, IntPtr Delimiter, IntPtr Text);
public static extern IntPtr pdfGetWrappedTextBreakStringA(IntPtr IPDF, double Width, IntPtr Delimiter, IntPtr Text);
Area
Text
Category

Getters

Exported names

pdfGetWrappedTextBreakStringW pdfGetWrappedTextBreakString pdfGetWrappedTextBreakStringA

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.