If you are able to change the template you can do it like this:
Code:
var record1 = nlapiLoadRecord(…);
var record2 = nlapiLoadRecord(…);
var renderer = nlapiCreateTemplateRenderer();
renderer.setTemplate(โฆ);
renderer.addRecord(‘record1’, record1);
renderer.addRecord(‘record2’, record2);
var xml = renderer.renderToString();
var file = nlapiXMLToPDF(xml);
If you can’t change the template, you could edit the generated XML strings to wrap them in a . You would have to remove the from both rendered strings, and wrap the combined strings in –
Code:
{{ your two generated XML strings }}