ftos.files.mergeAsPdf

IMPORTANT!  
Starting with v24.3.0, this is renamed from getMergedReport to ftos.files.mergeAsPdf.

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

This is a business logic method for business service components.

Syntax

Copy
function ftos.files.mergeAsPdf(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