i'm generating a pdf file `context.response.writeF...
# suitescript
m
i'm generating a pdf file
context.response.writeFile()
in a suitelet response using N/render. the file is made up of XML using <pdfset>. is it possible to specify a file name for the file, or is it always going to be report.pdf?
Copy code
var fileTemplate = render.create();
	fileTemplate.templateContent = xml;
var outputFile = fileTemplate.renderAsPdf();
context.response.writeFile(outputFile, false);
e
outputFile.name
m
awesome, thank you
that worked perfectly