SaveToStream

Document management

Description

Similar to the SaveToFile function, but allows the PDF document to be written to a stream object.

Syntax

Delphi

function TPDFlib.SaveToStream(OutStream: TStream): Integer;

ActiveX

Function PDFlib::SaveToStream(OutStream As Long) As Long

Parameters

OutStreamThe stream object to write the document to

Return values

0The document could not be saved
1The document was saved to the stream successfully