Application.JoinDocumentFiles Method

This method can be used for joining two or more files by appending multiple documents to another. Application.JoinDocumentFiles is more efficient than making multiple calls to Application.AppendDocumentFile or Application.AppendDocumentFile2.

Syntax

void JoinDocumentFiles(string[] inputFilePaths, string outputFilePath, appendOptions options, string delimiterFilePath)

Parameters Description
inputFilePaths The paths of the files to be appended.
outputFilePath The path of the resulting combined file.
options One of the following values from the appendOptions enumeration:
  • appendNone:Do not keep the header or footer of the appended document.

  • appendHeader:Keep the header of the appended document.

  • appendFooter:Keep the footer of the appended document.

  • appendBoth:Keep both the header and the footer of the appended document.
delimiterFilePath (Optional) The path of a file to insert between the joined files. This parameter is ignored if it is null or empty.