Aug 26, 2023
I tried the same solution with a Sheet and it works fine. It exports a PDF with the content of the sheet. There are no parameters to the method to control the details of what to export, so if you are trying to limit it to one tab, I'd do what I did here and copy the doc first, then use the Sheets API to remove all the tabs except the one you are after from the copy, and then export the copy.