THotPDF.ValidateLoadedEmbeddedFile Method

function ValidateLoadedEmbeddedFile(const AFileName: AnsiString;
  out AInfo: THPDFEmbeddedFileValidationInfo): Boolean;

Streams and validates the named embedded file under DecodeBudgetBytes without retaining its payload

The method accepts standard /Params /CheckSum and legacy stream-level checksum spellings and decodes escaped MIME PDF Names

The return value is true only when extraction succeeds and every metadata check passes