THPDFValidationSourceLocation 记录
把一次校验失败定位到具体文件、规则与对象的来源坐标
THPDFValidationSourceLocation = record
SourceFile: TFileName;
Stage: AnsiString;
RuleID: AnsiString;
Path: AnsiString;
ObjectNumber: Integer;
PageIndex: Integer;
ByteOffset: Int64;
end;
SourceFile 给出文件,Stage 给出管线阶段,RuleID 给出模式规则,调用方据此可以按阶段或规则归组失败
Path 定位被拒元素,ObjectNumber 与 PageIndex 标出 PDF 对象与从零计的页码,ByteOffset 给出源内的字节位置
抛出的失败经 EHPDFValidationError.Location 暴露它,批量任务则看 THPDFValidationJobResult.ErrorLocation