var renderer = render.create(); renderer.setTe...
# suitescript
r
var renderer = render.create(); renderer.setTemplateByScriptId("CUSTTMPL_GBS_CONSOLIDATED_BOL"); renderer.addCustomDataSource({ format: render.DataSource.OBJECT, alias: "JSON", data: pdf }); var bol = renderer.renderAsPdf(); I need to create a pdfset with this PDF template, I have data.. I just want to print them as single pdf. what should I do?
a
• Create all the individual PDFs, store them in the file cabinet with the checkbox available without login set to true. • Create the final pdf with PDF Set like this:
Copy code
/* Adding FWO PDF URLs */
for (var sFile in paramFilesURLs) {
   sFullURL = sProto + sDomain + paramFilesURLs[sFile];
   cleanPdfURL = xml.escape({xmlText:sFullURL});
   xmlString += '<pdf src="' + cleanPdfURL+ '"></pdf>';
}
xmlString += '</pdfset>';

var oRenderFile = render.xmlToPdf({
   xmlString: xmlString
});
Please notice that you need to escape the URLs before they are usable by the pdf src directive.