pdfSetMaxErrLogMsgCount
Cap the number of entries retained in the indexed error log.
| Category | Error 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
void __stdcall pdfSetMaxErrLogMsgCount(PPDF IPDF, uint32_t Value);
procedure pdfSetMaxErrLogMsgCount(const IPDF: PPDF; Value: Cardinal); stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
Value | uint32_t | Maximum 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 also — pdfGetErrLogMessageCount
C# (P/Invoke)
public static extern void pdfSetMaxErrLogMsgCount(IntPtr IPDF, uint Value);
Setters
pdfSetMaxErrLogMsgCount
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.