Reputation: 68
We are generating a PPT file using apache poi 3.9. The table in the slide will have dynamic number of columns. How to center align the table in the generated file. Now, the margin is set using:
table.setAnchor(new Rectangle(50, 60, 300, 300));
Upvotes: 2
Views: 306
Reputation: 68
The issue is resolved by calculating the table width and setting the left margin
Upvotes: 1
Reputation: 4496
You can calculate the table width and setting the left margin. That should fix the issue. I will check if there is any alternative.
Upvotes: 1