I am trying this code to generate a pdf file of my Apps script UI
.It does not show the UI in PDF. Please assist.
function saveaspdf(frm) {
var htmlBody = HtmlService.createHtmlOutputFromFile('my1.html').getContent();
var blob = Utilities.newBlob(htmlBody, 'text/html').getAs('application/pdf').setName('my_output_in_drive.pdf');
DriveApp.createFile(blob);
}