BeginOutputToStream

Document management

Description

Binds a Delphi TStream as the pending output target for the selected document

The library does not take ownership of the stream; callers must keep it alive until EndOutputStream or CancelOutputStream

EndOutputStream uses the same chunked writer as SaveToStream, so large generated documents do not need an intermediate AnsiString result

Syntax

Delphi

Function TPDFlib.BeginOutputToStream(OutStream: TStream): Integer;

Parameters

OutStreamThe stream that will receive the generated PDF when EndOutputStream is called

Return values

0No output stream was bound
1The output stream was bound successfully

See also

EndOutputStream, CancelOutputStream, OutputStreamActive, SaveToStream