API referenceCore SDK

pdfClearErrorLog

Clear the last-error message.

CategoryError handling
NoteScoped behavior — see Remarks

Purpose — Clear the last-error message.

Description — Empties the last-error buffer (FLastErrBuf), so a subsequent pdfGetErrorMessage returns NULL until the next error is raised.

Declarations

C
void __stdcall pdfClearErrorLog(PPDF IPDF);
Delphi
procedure pdfClearErrorLog(const IPDF: PPDF); stdcall; external 'LumasPdf.dll';

Return value — None. No-op on an invalid handle.

Remarks — In this build the call clears the *last message* only; the indexed log read by pdfGetErrLogMessage is not reset. Bound the indexed log with pdfSetMaxErrLogMsgCount instead, or recreate the instance for a truly clean slate.

See alsopdfGetErrorMessage, pdfSetMaxErrLogMsgCount

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern void pdfClearErrorLog(IntPtr IPDF);
Area
Core SDK
Category

Core

Exported names

pdfClearErrorLog

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.