TPDFlibVCRFileMerge

Data types, variable content

Description

Merges field values into an external PDF/VCR template for ExecuteVCRDataMerge.

TPDFlib declares the public methods and a protected dispatch method for the variable content replacement merge of PDF/VCR templates. The edition class supplies the implementation as a callback of this type. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_SMALLBUSINESS_REQUIRED. Application code never declares, assigns or calls a value of this type.

Syntax

Delphi

TPDFlibVCRFileMerge = Function(Const InputFileName, Password, FieldValues,
  OutputFileName: WideString): Integer Of Object;

Parameters

InputFileNameFull path of the PDF/VCR template to read
PasswordPassword used to open the template, or an empty string for an unencrypted file
FieldValuesReplacement values as key-value pairs or a JSON object, mapping declared field names to their new text
OutputFileNameDestination path of the merged PDF

Return values

R

See also

TPDFlibVCRCurrentMerge, TPDFlibVCRMergeTarget, ExecuteVCRDataMerge