ValidatePDFMAC

Security and signatures

Description

Revalidates the standalone PDF MAC token against the original bytes of the selected loaded document

Syntax

Delphi

Function TPDFlib.ValidatePDFMAC: Integer;

ActiveX

Function PDFlib::ValidatePDFMAC() As Long

DLL

int DLValidatePDFMAC(int InstanceID);

Return values

1The standalone PDF MAC is valid
0No valid standalone PDF MAC is available; inspect GetPDFMACStatus and LastErrorCode

Remarks

Normal load operations already perform this validation and reject missing, malformed, incompletely covered, unsupported, or unauthenticated tokens before exposing document pages

The validation hashes the declared ranges incrementally and does not load the complete PDF into an additional digest buffer

See also

SetPDFMACEnabled, GetPDFMACStatus