| Category | Error handling |
|---|---|
| Note | Scoped 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
void __stdcall pdfClearErrorLog(PPDF IPDF);
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 also — pdfGetErrorMessage, pdfSetMaxErrLogMsgCount
C# (P/Invoke)
public static extern void pdfClearErrorLog(IntPtr IPDF);
Core
pdfClearErrorLog
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.