Append page to already existing PDF?

How would I go about appending a page to an already existing PDF document?

Hello,

I eventually need to do this, too. In my case, I need to print a fax cover sheet and then combine that with a pdf that’s stored in the database. The pdf_output plugin has a function called combinePDFDocuments. Here’s some sample code, so hopefully it will point you in the right direction:

var printedPDF = plugins.pdf_output.endMetaPrintJob(); // not bothering to list the other print steps
var storedPDF  = globals.pdf_field // insert your dataprovider here

var pdfArray   = new Array(printedPDF, storedPDF); // order counts here, so my fax cover page would be listed first
var comboPDF   = plugins.pdf_output.combinePDFDocuments(pdfArray);

// do stuff with comboPDF, like add it as an email attachment

Please let us know how it goes.

chartpacs:
Hello,

I eventually need to do this, too. In my case, I need to print a fax cover sheet and then combine that with a pdf that’s stored in the database. The pdf_output plugin has a function called combinePDFDocuments.

I don’t have this function under my pdf_output plugin node.

Anyone know why?

The function is added to the plugin in Servoy 3.0 and you are likely working in 2.2.6 (we do not guarantee that plugins from 3.0.1 are working in 2.2.6 but it might be worth a try)