Попробуйте:
function makePdf() {
var ss=SpreadsheetApp.getActive();
var shts=ss.getSheets();
var sheetName='Base de dados';
for(var i=0;i<shts.length;i++) {
if(shts[i].getName()!=sheetName) {
shts[i].hideSheet();
}
}
var folder=DriveApp.getFolderById('FolderId');
var blob=ss.getBlob();
var file=folder.createFile(blob).getAs('application/pdf');
}