MergeStreams
Description
This function is similar to the MergeFiles function, however instead of working with files on disk, it merges two PDF documents stored in different TStream objects and saves the merged document into a third stream.
Outlines (bookmarks), form fields and annotations from the both documents will be present in the merged document.
Syntax
Delphi
function TQuickPDF0813.MergeStreams(FirstStream, SecondStream,
OutputStream: TStream): Integer;
ActiveX
This function is not available in the ActiveX edition
DLL
This function is not available in the DLL edition
Parameters
| FirstStream | The stream containing the first document |
| SecondStream | The stream containing the second document |
| OutputStream | The merged document is written into this stream |
Return values
| 0 | The documents could not be merged. Use the LastErrorCode function to determine the cause of the failure. |
| 1 | The merge process was successful |