THPDFHeadlessDocument.SetResourceLimits

procedure SetResourceLimits(const Options: THPDFHeadlessDocumentOptions);

Apply validated resource limits to an existing document, including operations performed after loading

Every numeric limit must be positive and the cancellation token must match the current token; the method rejects a limit smaller than the already loaded file, object table, page or field count, cached object streams, or generated stream bytes before changing the options

Decoded stream, object, text, and recursion limits continue to apply at the relevant work checkpoints; the limits constrain individual library allocations and work units rather than measuring process resident memory

Read the Options property to preserve the current record before temporarily changing limits, and restore it after the operation

Document limits · Linux callback ABI