OpenPDFStream

Security and signatures

Requires the Enterprise edition — part of the Enterprise signature verification surface in TPDFlibSignatureVerifier (unit PDFlibEntSignVerify)

Description

Opens a caller-owned stream that provides the PDF bytes, avoiding a copy through the filesystem.

A Nil stream and any content the parser rejects both yield srBadFormat; this entry point does not separate password failures from malformed input.

Syntax

Delphi

Function TPDFlibSignatureVerifier.OpenPDFStream(SourceStream: TStream; Const Password: WideString): TPDFlibSignerResult;

Parameters

SourceStreamStream with the PDF bytes; must not be Nil
PasswordOpen password for encrypted documents

Return values

srOkayThe document is open and ready for verification
srBadFormatThe stream is Nil or the bytes are not a PDF the parser accepts

Remarks

The verifier does not take ownership of the stream; the caller must keep it alive for as long as the document stays open.

See also

TPDFlibSignatureVerifier, TPDFlibSignerResult, EnumSignatures