I have published one of my sheets to download it in pdf:
I'm trying to change the pdf orientation using portrait=true URL parameter like this:
But it doesn't work.
Any ideas on how to solve this?
Since you want to convert your sheet to a pdf and download it instead of opening it in the browser, you can simply export it.
portrait=true parameter.https://docs.google.com/spreadsheets/d/FILE_ID/export?exportFormat=pdf&format=pdf&portrait=trueFILE_ID is the file id that you can find in the sheet URL:
https://docs.google.com/spreadsheets/d/FILE_ID/edit#gid=0FILE_ID is different than the publishing to the web id (the latter starts with 2PACX-)portrait=true is actually not necessary, because the sheet will be exported as portrait by default