property SignatureCount: Integer; // read only
SignatureCount returns the number of signature dictionaries currently present in
the document. PDFium enumerates the AcroForm signature fields (PDF 1.7 spec section 12.8):
each entry corresponds to a /Sig field whose /V value
is a signature dictionary (/Type /Sig) carrying the
/Contents hex string and /ByteRange coverage
The value is 0 when Active is False, when the
PDF carries only empty signature placeholders that have yet to be filled in, or when
the file simply was never signed. This is a document-level count: signature
fields may sit visually on any page, but the count itself is global
Use Signature[Index] to retrieve a single TPdfSignature
record containing the raw PKCS#7 Content bytes, the
Encoding string (adbe.pkcs7.detached,
ETSI.CAdES.detached and so on), the signer-supplied Reason /
Time strings and the Permission level. PDFium Delphi Component exposes
only inspection data; verifying the signature calls for a third-party cryptography
library that validates the PKCS#7 blob against the document's byte range
n validates the state at signing time, not
necessarily the current stateSaveAs provided no new
field is added; signing externally and saving via FPDF_SaveAsCopy
preserves existing signatures byte-for-byteFormFieldCount to check whether the document carries
additional non-signature interactive fields
var I: Integer;
var Sig: TPdfSignature;
for I := 0 to Pdf1.SignatureCount - 1 do
begin
Sig := Pdf1.Signature[I];
Memo1.Lines.Add(Format('Signer reason: %s, time: %s',
[Sig.Reason, Sig.Time]));
end;