GetPDFVCRManifest

Compliance, variable content, diagnostics, JSON

Description

Validates an external PDF/VCR-1 template and returns its declared fields, optional page-selection field and replacement placeholder bindings as JSON

Syntax

Delphi

Function GetPDFVCRManifest(Const InputFileName, Password: WideString): WideString;

Parameters

InputFileNameFull path of the PDF/VCR template to inspect
PasswordPassword used to open the file, or an empty string for an unencrypted template

Return value

A JSON object for a conforming template, otherwise an empty string

Remarks

The manifest contains version, fields, pageSelectionField and a placeholders array whose entries contain field, zero-based page, mcid and optional bbox

Extraction uses the same bounded structure traversal and PDF/X foundation checks as compliance test 6, so malformed or non-conforming templates are rejected before JSON is returned

A missing input file sets LastErrorCode 401; a rejected template sets LastErrorCode 608

See also

BeginPDFVCRTemplate, BeginPDFVCRPlaceholder, CheckFileCompliance