Debenu Quick PDF logo

MergeStreams

Document manipulation

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 TDebenuPDFLibrary1511.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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport