AppendToStream
Document management
Description
Writes an incremental update for the selected loaded PDF to a stream
Use this function when the update should be sent to an existing stream without first materialising the result as an AnsiString
The selected document must come from an existing PDF loaded with LoadFromFile, LoadFromString, or LoadFromStream
Syntax
Delphi
Function TPDFlib.AppendToStream(AppendMode: Integer; OutStream: TStream): Integer;
Parameters
| AppendMode | 0 = write the original source plus the update section; 1 = write only the update section; 2 = write the input set with SetAppendInputFromString plus the update section |
|---|---|
| OutStream | The stream that receives the incremental update output |
Return values
| 0 | The incremental update could not be written to the stream |
|---|---|
| 1 | The incremental update was written successfully |