THotPDF.ValidatePDFWithPolicy Method

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