API referenceCore SDK

pdfRemoveStyle

Remove a named paragraph/character style (from whatever

C
int32_t __stdcall pdfRemoveStyleA(PPDF IPDF, const char* StyleName);
int32_t __stdcall pdfRemoveStyleW(PPDF IPDF, const wchar_t* StyleName);
Delphi
function pdfRemoveStyleA(const IPDF: PPDF; StyleName: PAnsiChar): Integer; stdcall;
function pdfRemoveStyleW(const IPDF: PPDF; StyleName: PWideChar): Integer; stdcall;

Purpose. Remove a named paragraph/character style (from whatever style-registration mechanism this SDK exposes for its rich-text/HTML drawing subsystem — not independently re-verified in this chapter as to which specific style-creation entry point registers styles by this same name).

Return value. 1 if StyleName resolved and was removed; 0 otherwise.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfRemoveStyleW(IntPtr IPDF, IntPtr StyleName);
public static extern int pdfRemoveStyle(IntPtr IPDF, IntPtr StyleName);
public static extern int pdfRemoveStyleA(IntPtr IPDF, IntPtr StyleName);
Area
Core SDK
Category

Core

Exported names

pdfRemoveStyleW pdfRemoveStyle pdfRemoveStyleA

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.