TPDFlibDataType

security and signatures

Description

TPDFlibDataType selects where a process reads its PDF from or writes it to: a file, a TStream or an ANSI string. TPDFlibSignProcess uses it for SourceDataType, TargetDataType and PFXDataType; the Enterprise process classes TPDFlibDSSProcess and TPDFlibSignatureTimeStampProcess use it for their source and target fields.

The type is declared in unit PDFlibDigitalSign, which belongs to the base library; no particular edition is needed to use the type itself. Working with it through the two Enterprise process classes requires the Enterprise edition.

Syntax

TPDFlibDataType = (dtFile, dtStream, dtString);

Values

dtFileThe data is read from or written to the file named by the FileName field of the process, such as SourceFileName or TargetFileName. Both Enterprise processes set dtFile for source and target in Create
dtStreamThe data is read from or written to the TStream in the Stream field of the process, such as SourceStream or TargetStream. Both Enterprise processes read the stream from position 0 and never free it
dtStringThe data is taken from or stored in the AnsiString field of the process, such as SourceString or TargetString, as raw PDF bytes

Remarks

The selector names the field to use; the other fields of the same group are not read. The two Enterprise processes report a missing source with their own result code: 2 for a file that does not exist and 3 for a Nil stream or an empty string.

Only the three listed values are defined. Execute of TPDFlibDSSProcess treats any other source value as an unreadable source (3), and the delivery steps of both Enterprise processes have no branch for another target value.

See also

TPDFlibDSSProcess, TPDFlibSignatureTimeStampProcess, Execute, EndSignProcessToFile