DASaveCopyToStream

Document management, Direct access functionality

Description

Similar to DASaveToStream but the input file is not closed.

Syntax

Delphi

function TPDFlib.DASaveCopyToStream(FileHandle: Integer; OutStream: TStream): Integer;

ActiveX

Function PDFlib::DASaveCopyToStream(FileHandle As Long, OutStream As Long) As Long

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
OutStreamThe Delphi TStream object to save the file into

Return values

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