xml += "</div>"; xml += "</body>...
# suitescript
g
xml += "</div>"; xml += "</body>"; xml += "</pdf>"; // run the BFO library to convert the xml document to a PDF var d = new Date(); var file = nlapiXMLToPDF( xml ); file.setFolder(194); file.setName('PrintTest'+d+'.pdf'); var idNum = nlapiSubmitFile(file,true); nlapiLogExecution('DEBUG', 'idNum', idNum); } }