THPDFJobProcessor.ExecuteLoadedOperation

Executes one operation against a borrowed loaded document

class function ExecuteLoadedOperation(Document: THotPDF;
  Op: THPDFJSONValue; Output: TStream = nil;
  Checkpoint: TNotifyEvent = nil): THPDFJSONValue; static;

The unit is HPDFDocJobs; the caller keeps ownership of the document, operation, output stream, and returned result

Binary results such as rendered PNG bytes are written to Output when supplied, while JSON results are returned as a THPDFJSONKind object tree

The optional checkpoint event runs throughout the operation and preserves cancellation and budget exceptions for cooperative abort

Comparison operations that need a second document use ExecuteLoadedOperationWithComparison, and signing with an explicit timestamp transport uses ExecuteLoadedSigningOperation

JSON and C ABI document operations