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 running from pldsHeaderUnavailable through to pldsDocumentReady
FileLengthTotal size of the source, in bytes
FirstPageEndOffsetByte offset just beyond the self-contained first-page section
MainXRefOffsetThe declared offset of the main cross-reference section
MainXRefRangeOffsetMain xref offset less a 4096-byte look-behind, clamped at zero
MainXRefRangeLengthBytes from MainXRefRangeOffset through to the end of the file
FirstPageObjectNumberObject number belonging to the linearized first page
PageCountTotal page count as given by the linearization dictionary
HeaderRangeAvailableTrue where the first 1024 header bytes are present in the source
FirstPageRangeAvailableTrue where every byte range of the first-page section is present
MainXRefRangeAvailableTrue where the main xref range is present in the source
WholeDocumentAvailableTrue where the whole file is available
DiagnosticText describing what is available or the reason planning stopped

Usage notes

Related APIs