如何使用 apache poi ppt 居中对齐幻灯片中具有动态列的 table
How to center align the table which has dynamic columns in a slide using apache poi ppt
我们正在使用 apache poi 3.9 生成 PPT 文件。幻灯片中的 table 将具有动态的列数。如何在生成的文件中居中对齐 table。现在,边距设置为:
table.setAnchor(new Rectangle(50, 60, 300, 300));
您可以计算 table 宽度并设置左边距。那应该可以解决问题。我会看看有没有其他选择。
问题已通过计算 table 宽度和设置左边距
得到解决
我们正在使用 apache poi 3.9 生成 PPT 文件。幻灯片中的 table 将具有动态的列数。如何在生成的文件中居中对齐 table。现在,边距设置为:
table.setAnchor(new Rectangle(50, 60, 300, 300));
您可以计算 table 宽度并设置左边距。那应该可以解决问题。我会看看有没有其他选择。
问题已通过计算 table 宽度和设置左边距
得到解决