getMergedReport

Concatenates multiple files and returns the ID of the resulting file (saved in the file upload location).

IMPORTANT!  
getMergedReport supports only .pdf and .docx files.

Syntax

Copy
function getMergedReport(reports: string[], reportName: string, deleteInitialReports: boolean, addPageBetweenReports: boolean): string
 
 
ParameterDescription
reportsArray of strings containing the unique internal IDs of the merged files (real names) in the order you wish to merge them.
reportNameName of the resulting merged file.
deleteInitialReports
  • true – Deletes the source files after they are merged.
  • false – Keeps the source files after they are merged.
addPageBetweenReports
  • true – Adds a blank page between the merged files.
  • false – Doesn't add blank pages between the merged files.

Return Value

Returns a string containing the saved merged file's real name.

Examples