API referenceCore SDK

pdfSetMaxErrLogMsgCount

Cap the number of entries retained in the indexed error log.

CategoryError handling

Purpose — Cap the number of entries retained in the indexed error log.

Description — Sets FMaxErrCount (default 100). RaiseError appends to the indexed log only while the current count is below this cap; once reached, further errors still fire the callback and update the last-message buffer but are no longer appended to the indexed array. Set 0 to stop indexed accumulation entirely.

Declarations

C
void __stdcall pdfSetMaxErrLogMsgCount(PPDF IPDF, uint32_t Value);
Delphi
procedure pdfSetMaxErrLogMsgCount(const IPDF: PPDF; Value: Cardinal); stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
Valueuint32_tMaximum retained entries.

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

Remarks — Lowering the cap below the current count does not truncate entries already stored; it only prevents new ones past the limit. This bounds memory for long-running batch jobs that would otherwise accumulate warnings indefinitely.

See alsopdfGetErrLogMessageCount

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern void pdfSetMaxErrLogMsgCount(IntPtr IPDF, uint Value);
Area
Core SDK
Category

Setters

Exported names

pdfSetMaxErrLogMsgCount

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.