My goal:
- I want to create a new table inside the Google Slides for the specified page_id
- Adjust the table column width and row height so the whole table would fit in a single page.
- I want to achieve above using python
Known limitations:
- slides api documentation states that minimum column width can be 406400 (EMU) or 32 PT. These are too big for the table I need.
- Sending a request with values lower than above, will make no change to a table in the presentation.
My questions:
- Is there a way to undermine the column width min value?
- How can I create a table that maximises the page "real estate"?
Short Answers:
More Information:
You can't undermine the set-out minimum limits of the table settings, this is done by design in Slides.
As a workaround, however, you can 'draw' your own tables out of line Shapes. It's a bit of an ugly workaround, but certainly doable.
There exists a
PageElement
ofShape
type which you can create to simulate drawing a table. Much like in the UI, you can draw multiple lines and 'stitch' them together with location data.From the documentation:
Example:
References:
PageElement
| Slides API | Google Developers