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
| Kind | Promotion to run: pvkLongTerm or pvkArchive |
|---|---|
| Source | Complete bytes of the signed input PDF |
| Password | Password to open the input, or an empty string |
| FieldName | Signature field to process, or an empty string to process every signature into one revision |
| Options | PADES_LTV_* bit mask; 0 selects PADES_LTV_DEFAULT |
| ToFile | True writes the result to OutputFile, False to OutputStream |
| OutputFile | Destination path of the promoted PDF; used when ToFile is True |
| OutputStream | Caller-owned destination stream; used when ToFile is False |
Return values
| R |
See also
TPDFlibPAdESValidationKind, ApplyPAdESLongTermValidation, ApplyPAdESLongTermArchiveValidationToStream