CreateAuditEvidenceBatchA

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

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to CreateAuditEvidenceBatch and string arguments are interpreted using the current SetAnsiMode code page

Syntax

Delphi

Function DLCreateAuditEvidenceBatchA(InstanceID: Integer; RequestJSON: PAnsiChar; PolicyJSON: PAnsiChar): PAnsiChar;

DLL

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

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