```let thePdf = render.xmlToPdf(...); thePdf.name ...
# suitescript
e
Copy code
let thePdf = render.xmlToPdf(...);
thePdf.name = "My Awesome Doc.pdf";
thePdf.folder = -15; // FileCabinet/SuiteScripts/
thePdf.save();