THPDFValidationSourceLocation Record
Source coordinates that map a validation failure onto the exact file, rule and object that produced it
THPDFValidationSourceLocation = record
SourceFile: TFileName;
Stage: AnsiString;
RuleID: AnsiString;
Path: AnsiString;
ObjectNumber: Integer;
PageIndex: Integer;
ByteOffset: Int64;
end;
SourceFile names the file, Stage the pipeline stage and RuleID the schema rule, so a caller can group failures by stage or by rule
Path locates the rejected element, ObjectNumber and PageIndex identify the PDF object and the zero-based page, and ByteOffset gives the byte position inside the source
EHPDFValidationError.Location publishes it for raised failures and THPDFValidationJobResult.ErrorLocation for batch jobs