Generate PDF of only one sheet of my spreadsheet
问题 I need a script that creates a PDF with only one sheet of my spreadsheet. I currently have a script that generates a PDF but does it with the entire file. I can not copy the values to another file, since the sheet I need to export is graphics with data extracted from another sheet. Could you help me? Thank you. function myFunction() { var archivo = SpreadsheetApp.getActive(); var hoja = archivo.getSheetByName("Graficos 2"); var id = archivo.getId(); var archivoId = DriveApp.getFileById(id);