combinePDFDocuments not working

I am trying to use the combinePDFDocuments method of the pdf_output plugin, but its not working.

Here is some sample code. If I run it and output either of the array values I get the file fine, but if I pass the array to the pdf_output.combinePDFDocuments I get a zero byte file.

var pdfArray = new Array(1);
pdfArray[0] = application.readFile("c:/data/aibs/peer/pdf/CarRegistration.pdf")
pdfArray[1] = application.readFile("c:/data/aibs/peer/pdf/ConflictHonorariaForm.pdf")
var pdfSummaryFile = plugins.pdf_output.combinePDFDocuments(pdfArray);
var success = plugins.file.writeFile("c:/data/aibs/peer/pdf/Summary.pdf", pdfSummaryFile);
plugins.dialogs.showInfoDialog( "Status", success)

Can anyone tell me what am I doing wrong?

Just tried with your code here and worked OK here on:

Servoy Developer
Version 3.0.1-build 372
Java version 1.5.0_04-b05 (Windows XP)

maybe you are short of memory… have you tried with two small pdf?.