THPDFRandomAccessSource Class

Abstract base class that lets THotPDF.LoadFromRandomAccessSource load a PDF from any caller-defined seekable byte store without requiring a TStream implementation

Declaration

THPDFRandomAccessSource = class
public
  function GetSize: Int64; virtual; abstract;
  function ReadAt(Offset: Int64; var Buffer;
    Count: Longint): Longint; virtual; abstract;
end;

Unit

HPDFDoc

Members

NamePurpose
GetSizeReturns the stable byte length of the backing store
ReadAtReads Count bytes starting at Offset into Buffer

Usage notes

Related APIs