CreateAuditEvidenceBatch

Enterprise, audit evidence

Requires the Enterprise edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibEnterprise (unit PDFlibEnterprise); the Enterprise DLL and ActiveX builds provide it unchanged; other editions keep the method, which returns an empty string and sets LastErrorCode to 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)

Requires Enterprise

Description

Audits up to 64 files against one policy in a single call and returns a JSON batch envelope with per-file evidence objects plus failure, rejection and incompleteness counts

Syntax

Delphi

Function TPDFlib.CreateAuditEvidenceBatch(Const RequestJSON, PolicyJSON: WideString): WideString; Virtual;

ActiveX

Function PDFlib::CreateAuditEvidenceBatch(RequestJSON As String, PolicyJSON As String) As String

DLL

const wchar_t* DLCreateAuditEvidenceBatch(int InstanceID, const wchar_t* RequestJSON, const wchar_t* PolicyJSON);
const char* DLCreateAuditEvidenceBatchA(int InstanceID, const char* RequestJSON, const char* PolicyJSON);

Parameters

RequestJSONJSON object whose files array holds 1 through 64 entries; each entry has an input file name and an optional password string
PolicyJSONPolicy object applied to every file, using the checks and limits of CreateAuditEvidence; an empty value uses the same defaults

Return values

Returns the JSON batch envelope with failedFiles for processing errors, rejectedFiles for policy rejection, incompleteFiles for incomplete evidence and indexed files. A valid batch can have status:"ok" while some files fail or are rejected; invalid schemas use error 905, and other editions return an empty string with error 900.

The request contains a files array of 1 through 64 objects, each with an input file name and optional password string; the separate policy applies to every file

{"files":[{"input":"invoice.pdf"},{"input":"drawing.pdf"}]}

Each file gets an independent snapshot and evidence object; a missing or unreadable file is reported without stopping later files, and temporary snapshots are released after each operation

The JSON envelope separates failedFiles for processing errors, rejectedFiles for policy rejection and incompleteFiles for incomplete successful evidence objects; inspect every indexed entry in files

A valid batch envelope can have status:"ok" while some files fail or are rejected; its aggregate complete requires every operation and check to complete, and aggregate accepted also requires that no operation failed

Invalid schemas return status:"error" with error 905; unknown members and invalid password types are rejected; source and output limits remain bounded

DLL and Dylib provide DLCreateAuditEvidenceBatch and its A variant; ActiveX exposes the method through IPDFlibrary8

CreateAuditEvidence ยท CompareAuditEvidence