THotPDF.ValidatePDFMAC Method
Validiert eigenständige oder an eine Signatur angehängte PDF-MAC-Daten und liefert strukturierte Fehlerdiagnosen
Deklaration
function ValidatePDFMAC(const FileName: TFileName; const Password: AnsiString; out ValidationInfo: THPDFPDFMACValidationInfo): boolean; overload;
function ValidatePDFMAC(const FileName: TFileName; const Password: AnsiString; const Options: THPDFPDFMACOptions; out ValidationInfo: THPDFPDFMACValidationInfo): boolean; overload;
Verwendungshinweise
THPDFPDFMACStatusdistinguishes authentication, modification, truncation, malformed-data, and unsupported-algorithm failuresTHPDFPDFMACValidationInforeports coverage, algorithm, digest, and authentication decisionsTHPDFPDFMACLocationdistinguishes standalone, signature-attached, and unknown locations- No decrypted plaintext is exposed before authentication succeeds
pmsPolicyRejectedkennzeichnet einen gültig geparsten, aber unzulässigen Digest- oder Verschlüsselungsmodus- Das Ergebnis meldet den erkannten Digest, das gewählte Profil, die Richtlinienentscheidung und die Verwendung von AES-256-GCM
PermissionsAuthenticatedconfirms that encrypted/Permsmatches/P, whileMACRequiredByPermissionsreports the authenticated PDF MAC requirement bit- Attached validation resolves the active trailer
SigObjRef, requires exactly one matching signature field, and verifies complete signatureByteRangecoverage Location,SignatureObjectNumber,SignatureGeneration,FullFileCoverage, andSignatureDigestMatchedreport the verified attachment bindingpmsSignatureBindingFailedunterscheidet einen Fehler beim Digest des rohen Signaturwerts von einer Dokumentänderung
Siehe ValidatePDFMACChain, um jede inkrementelle Revision zu authentifizieren, oder PDF MAC Algorithm Agility and Policy Profiles für die Semantik der Profile