THotPDF.ValidatePDFMAC Method
単独の、または署名に添付された PDF MAC データを検証し、構造化された失敗診断を返します
宣言
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;
使用上の注意
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
pmsPolicyRejectedは、正しく解析できたものの、許可されていないダイジェストまたは暗号化モードであることを区別します- 結果には、検出されたダイジェスト、選択されたプロファイル、ポリシーの判定、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 bindingpmsSignatureBindingFailedは、署名値そのもののダイジェストの失敗と、ドキュメントの改変とを区別します
すべての incremental リビジョンを認証するには ValidatePDFMACChain を、プロファイルの仕様については PDF MAC Algorithm Agility and Policy Profiles を参照してください