I try to combine multiple PDF documents into one single PDF file using plugins.pdf_output.combinePDFDocuments(), but the generated PDF file doesn’t contain any data.
This is the way I try to do this:
var vFiles = new Array('C:\Documents and Settings\karel\.servoy\PDFS\220409160107.pdf', 'C:\Documents and Settings\karel\.servoy\PDFS\220409160112.pdf','C:\Documents and Settings\karel\.servoy\PDFS\220409160120.pdf')
var vCombinePDF = plugins.pdf_output.combinePDFDocuments(vFiles);
//get folder location
var vHome = plugins.it2be_tools.client().userHome
var vSeparator = plugins.it2be_tools.client().fileSeparator
var vFileFolder = vHome + vSeparator + '.servoy' + vSeparator + 'PDFS'
var vDateTime = utils.dateFormat(new Date(), 'ddMMyyHHmmss')
var vFileName = 'Combine_' + vDateTime + '.pdf'
var vFullPath = vFileFolder + vSeparator + vFileName
var vResult = plugins.file.writeFile(vFullPath, vCombinePDF)
plugins.file.writeFile returns true and creates a PDF file, but this file does not contain data.
Anybody knows what goes wrong here?
Servoy Developer
Version 3.5.7-build 520
Java version 11.0-b16 (Windows XP)