mergeDocuments

Concatenates multiple PDF files into a single one and saves it to the file upload location.

Syntax

function mergeDocuments(filesToMerge: string[], destinationName: string, deleteFilesAfterMerge:boolean): string
 
Parameter Description
filesToMerge Array of strings containing the unique internal IDs of the merged PDF files (real names) in the order you wish to merge them.
destinationName File name of the saved .pdf file.
deleteFilesAfterMerge
  • true – Deletes the source files after they are merged.
  • false – Keeps the source files after they are merged.

Return Value

Returns a string containing the saved PDF's real name.

Examples