DASaveToStream
Document management, Direct access functionality
Description
Saves the file to a TStream. The output header uses the effective PDF version of the DA document, including any version raise caused by Direct Access edits
Syntax
Delphi
Function TPDFlib.DASaveToStream(FileHandle: Integer; OutStream: TStream): Integer;
Parameters
| FileHandle | A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions |
|---|---|
| OutStream | The Delphi TStream object to save the file into |
Return values
| 0 | The file could not be saved to the stream |
|---|---|
| 1 | The file was successfully saved to the stream |
Remarks
Success is reported only after the complete cross-reference table and trailer have been written; a stream write failure returns 0 and sets LastErrorCode to 403
The source handle is closed after a successful save and remains available for retry after a write failure; discard incomplete output before retrying