[英]Python Google Slides API - Adjust table width and height to fit inside the page
My goal:我的目标:
Known limitations:已知限制:
My questions:我的问题:
Thanks谢谢
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
of Shape
type which you can create to simulate drawing a table.存在一个
Shape
类型的PageElement
,您可以创建它来模拟绘制表格。 Much like in the UI, you can draw multiple lines and 'stitch' them together with location data.就像在 UI 中一样,您可以绘制多条线并将它们与位置数据“缝合”在一起。
From the documentation :从文档:
Shape
形状
A
PageElement
kind representing a generic shape that does not have a more specific classification.表示没有更具体分类的通用形状的
PageElement
种类。
I hope this is helpful to you!我希望这对你有帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.