I'm using the Google Slides API, I used the page size parameter, when I created a new presentation, but is ignored ? How I can do that ? How I can create a new presentation with a custom page size ? Thanks
Asked
Active
Viewed 63 times
1 Answers
1
You can use the method presentations.create
where the request body will look like this:
{
"presentationId": string,
"pageSize": {
"width": {
"magnitude": number,
"unit": enum(Unit)
},
"height": {
"magnitude": number,
"unit": enum(Unit)
}
},
"slides": [
{
object(Page)
}
],
"title": string,
"masters": [
{
object(Page)
}
],
"layouts": [
{
object(Page)
}
],
"locale": string,
"revisionId": string,
"notesMaster": {
object(Page)
}
}
You can also check this SO post for same related issue.

Jessica Rodriguez
- 2,899
- 1
- 12
- 27
-
Unfortunately, it doesn't work either. The pageSize field is just ignored.The link to the SO post seems to be the only workaround. – Sergei V Kim Jan 24 '20 at 01:17