THotPDF.LoadFromRandomAccessSource

Carica un PDF tramite una sorgente di byte seekable definita dal chiamante senza richiedere un'implementazione TStream

Dichiarazioni

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

function LoadFromRandomAccessSource(
  Source: THPDFRandomAccessSource;
  OwnsSource: Boolean = False): Integer; overload;

function LoadFromRandomAccessSource(
  Source: THPDFRandomAccessSource;
  const Password: AnsiString;
  OwnsSource: Boolean = False): Integer; overload;

Contratto

Il risultato è il conteggio delle pagine caricate, coerente con LoadFromFile e LoadFromStream

Vedere anche: Caricamento scalabile, LoadFromStream