TPDFlibPAdESValidationRun

Data types, security and signatures

Description

Runs one PAdES long-term validation promotion for the ApplyPAdES methods.

TPDFlib declares the public methods and a protected dispatch method for the one-call promotion of a signed PDF to PAdES B-LT or B-LTA. 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_ENTERPRISE_REQUIRED. Application code never declares, assigns or calls a value of this type.

Syntax

Delphi

TPDFlibPAdESValidationRun = Function(Const Source: AnsiString;
  Const Password, FieldName: WideString; Options: Integer;
  ToFile: Boolean; Const OutputFile: WideString; OutputStream: TStream): Integer Of Object;

Parameters

KindPromotion to run: pvkLongTerm or pvkArchive
SourceComplete bytes of the signed input PDF
PasswordPassword to open the input, or an empty string
FieldNameSignature field to process, or an empty string to process every signature into one revision
OptionsPADES_LTV_* bit mask; 0 selects PADES_LTV_DEFAULT
ToFileTrue writes the result to OutputFile, False to OutputStream
OutputFileDestination path of the promoted PDF; used when ToFile is True
OutputStreamCaller-owned destination stream; used when ToFile is False

Return values

R

See also

TPDFlibPAdESValidationKind, ApplyPAdESLongTermValidation, ApplyPAdESLongTermArchiveValidationToStream