THPDFHeadlessDocument.SetResourceLimits

procedure SetResourceLimits(const Options: THPDFHeadlessDocumentOptions);

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

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

Decoded stream, object, text and recursion limits keep applying 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 keep the current record before changing limits temporarily, and restore it once the operation is done

Document limits · Linux callback ABI