THotPDF.LoadAuthenticatedRevisionFromRandomAccessSource

Loads an encryption-preserving revision through a seekable byte source while borrowing the credential another component already authenticated

Declaration

function LoadAuthenticatedRevisionFromRandomAccessSource(
  Source: THPDFRandomAccessSource; CredentialSource: THotPDF;
  OwnsSource: boolean= false): Integer;

Contract

The result is the loaded page count, matching LoadFromStream and LoadFromFile; if the authenticated revision cannot be verified the source is released and no revision is loaded

See also: LoadFromRandomAccessSource, PrepareLoadedFormDataRevisionToStream, Loaded annotation import policies