API referenceCore SDK

pdfSetBreakString

Set the string appended at a forced line break in

C
int32_t __stdcall pdfSetBreakStringA(PPDF IPDF, const char* NewBreakString);
int32_t __stdcall pdfSetBreakStringW(PPDF IPDF, const wchar_t* NewBreakString);
Delphi
function pdfSetBreakStringA(const IPDF: PPDF; NewBreakString: PAnsiChar): Integer; stdcall;
function pdfSetBreakStringW(const IPDF: PPDF; NewBreakString: PWideChar): Integer; stdcall;

Purpose. Set the string appended at a forced line break in word-wrapped text output (e.g. a hyphen or ellipsis marker) — stored on BreakStr.

Return value. 1 if IPDF is valid.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfSetBreakStringW(IntPtr IPDF, IntPtr NewBreakString);
public static extern int pdfSetBreakString(IntPtr IPDF, IntPtr NewBreakString);
public static extern int pdfSetBreakStringA(IntPtr IPDF, IntPtr NewBreakString);
Area
Core SDK
Category

Setters

Exported names

pdfSetBreakStringW pdfSetBreakString pdfSetBreakStringA

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.