I converted Google Sheets file to PDF with scripts:
var source = DriveApp.getFilesByName('template').next();
var temp = source.getAs('application/pdf').setName(new_name);
var newFile = folder.createFile(temp);
Unfortunately the destination file PDF lost all margins it originally had. I have set the correct margins in Google Sheets.
How do I keep the same margin values in the destination file?