Merges two files on disk and saves the merged document to a new file. The files are accessed directly on disk, the entire file does not have to be loaded into memory so this function can be used with huge documents. The files must not be encrypted. Monitor the size of the output file while this function runs to work out the progress.
Outlines (bookmarks), form fields and annotations from the both documents will be present in the merged document.
function TDebenuPDFLibrary1511.MergeFiles(FirstFileName, SecondFileName,
OutputFileName: WideString): Integer;
Function DebenuPDFLibrary1511.PDFLibrary::MergeFiles(FirstFileName As String,
SecondFileName As String, OutputFileName As String) As Long
int DPLMergeFiles(int InstanceID, wchar_t * FirstFileName, wchar_t * SecondFileName,
wchar_t * OutputFileName)
|FirstFileName||The name of the first file to merge.|
|SecondFileName||The name of the second file to merge.|
|OutputFileName||The name of the file to create which will contain the merged document.|
|0||The files could not be merged. Use the LastErrorCode function to determine the cause of the failure.|
|1||The files were merged successfully and the new merged document was created|