TPDFlibPAdESInput
Data types, security and signatures
Description
Describes where a PAdES process reads the signed PDF from. TPDFlib fills the record from the arguments of the calling NewPAdES method; the member that belongs to DataType carries the source and the other source members stay empty.
TPDFlib declares the public methods and a protected dispatch method for the PAdES processes that augment a signed PDF. The edition class supplies the implementation as a callback, and this record is what that callback returns. 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 a value of this type.
Syntax
Delphi
TPDFlibPAdESInput = record
DataType: TPDFlibDataType;
FileName, Password: WideString;
Stream: TStream;
Bytes: AnsiString;
end;Fields
| DataType | Kind of source: dtFile, dtStream or dtString |
|---|---|
| FileName | Path of the source PDF for dtFile |
| Password | Open password, or an empty string when the PDF is not encrypted |
| Stream | Caller-owned stream with the PDF bytes for dtStream; it has to stay alive until the process ends |
| Bytes | PDF bytes for dtString |
See also
TPDFlibPAdESProcessCreate, TPDFlibPAdESProcessKind, NewPAdESDSSProcessFromFile