Default Page Size for Google Docs

We have a system that generates documents using the Google API, we would like the default page setting to be A4 for all documents we create. We set the default value to A $ in the settings of Google Doc, but this is not portable for files created using the API.

Is there something we need to set in an API call to create a document?

Thanks in advance, David

+4
source share
1 answer

Is there something we need to set in an API call to create a document?

Unfortunately, it seems that this option is not supported through the API, either when creating a file or when updating a file. Google Docs / Drive considers page setup as an application parameter, not a parameter for each file.

Here’s a complete list of metadata you can provide about the file: https://developers.google.com/drive/v2/reference/files

0
source

Source: https://habr.com/ru/post/1435946/


All Articles