NetSuite merge PDF in SuiteScript 2.0 [in-progress]-CarlZeng
An example below shows the how PDF files are being merged using
var xmlF = ‘
’;
xmlF += ‘
xmlF += ‘‘;
xmlF = xmlF.replace(/&(?!amp;)/g, ‘&’);
var file = render.xmlToPdf({ xmlString: xmlF });
file.save();
Sample2:
var arrayWithUrls = [“/core/media/media.nl?id=theid&c=myaccoutn&h=1122&_xt=.pdf”, “/core/media/media.nl?id=theid&c=myaccount&h=2233&_xt=.pdf”] var xml = “\n\n” xml += “Merged PDF
\n” xml += ““ xml += “Document body” xml += “