im using this script in order to save the curren tab as a pdf to specific folder
function SaveAsPDF() { SpreadsheetApp.flush(); var ss = SpreadsheetApp.g