THPDFProgressiveLoadInfo Record

Reports linearization status, byte offsets, and range availability for progressive loading of a linearized PDF

Declaration

THPDFProgressiveLoadInfo= record
  Status: THPDFProgressiveLoadStatus;
  FileLength: Int64;
  FirstPageEndOffset: Int64;
  MainXRefOffset: Int64;
  MainXRefRangeOffset: Int64;
  MainXRefRangeLength: Int64;
  FirstPageObjectNumber: Integer;
  PageCount: Integer;
  HeaderRangeAvailable: boolean;
  FirstPageRangeAvailable: boolean;
  MainXRefRangeAvailable: boolean;
  WholeDocumentAvailable: boolean;
  Diagnostic: AnsiString;
end;

Unit

HPDFDoc

Fields

FieldPurpose
StatusProgressive load verdict from pldsHeaderUnavailable through pldsDocumentReady
FileLengthTotal size of the source in bytes
FirstPageEndOffsetByte offset just past the self-contained first-page section
MainXRefOffsetDeclared offset of the main cross-reference section
MainXRefRangeOffsetMain xref offset minus a 4096-byte look-behind, clamped at zero
MainXRefRangeLengthBytes from MainXRefRangeOffset to the end of the file
FirstPageObjectNumberObject number of the linearized first page
PageCountTotal page count from the linearization dictionary
HeaderRangeAvailableTrue when the first 1024 header bytes are present in the source
FirstPageRangeAvailableTrue when every byte range of the first-page section is present
MainXRefRangeAvailableTrue when the main xref range is present in the source
WholeDocumentAvailableTrue when the entire file is available
DiagnosticText describing what is available or why planning stopped

Usage notes

Related APIs