title: Netsuite Script combine/merge multiple statements
body: <p>Have a functional requirement to email a customer a single email attachment that contains multiple statements.</p>
  
  <p>I understand well Netsuite suitescript and how to generate a PDF using nlapiPrintRecord(), but as you know this only supports 1 record.</p>
  
  <p>I have also read a suiteanswer where you can print the record, save it to the file cabinet, and then reference it, however this uses substantial unit governance and would severely limit the amount of data that could be generated in a single script.</p>
  
  <p>I might have to generate an email that contains 100 statements. This seems like an impossible task, but if I generated my own template and used xmlToPdf() then I could used saved search results and have the email contain thousands of pages.</p>
  
  <p>Is there a possible way to generate a statement without having to save the record or load the customer first as this also uses significant units, which can then be merged into a single pdf file.</p>