GetSignatureRevisionIndex

Security and signatures, direct access functionality

Description

Reports the zero-based index of the revision at which a signature ByteRange ends

Returns -1 when the signature does not end on a revision boundary, which means bytes were appended inside the range the signature claims to cover

Syntax

Delphi

Function TPDFlib.GetSignatureRevisionIndex(Const InputFile, Password, FieldName: WideString): Integer;

Parameters

InputFileThe path of the signed PDF file to inspect
PasswordThe open password, or an empty string when the file is not encrypted
FieldNameThe fully qualified field name of the signature whose revision is requested

Return value

Returns the revision index, or -1 when the signature ByteRange does not end on a revision boundary

See also

GetDocumentRevisionCount, GetDocumentRevisionKind, ApplyPAdESLongTermValidation