THotPDF.ValidatePDFWithPolicy Method

Enterprise edition: this feature ships with HotPDF Enterprise. Add HPDFEnterprise to a uses clause (C++Builder: #pragma link "HPDFEnterprise"); other editions keep the declaration and raise EHPDFEnterpriseRequired

Runs structural preflight and the selected policy requirements against an independent source PDF

IsValid := PDF.ValidatePDFWithPolicy(SourceFile, Password, Policy, Report);

The report contains stable policy check names and structured locations when converted to JSON or HTML, and the component operation cancellation token applies to loading and validation