MergeDocument

Document manipulation

Description

Use this function to join another document to the selected document. After merging, the second document is deleted.

Form fields and annotations from the second document are preserved but outlines (bookmarks) are not.

Syntax

Delphi

function TPDFlib.MergeDocument(DocumentID: Integer): Integer;

ActiveX

Function PDFlib::MergeDocument(DocumentID As Long) As Long

DLL

int DLMergeDocument(int InstanceID, int DocumentID);

Parameters

DocumentIDThe ID of the document to join to the selected document

Return values

0The documents could not be merged together
1The merging was successful