Page 1 of 1

How do I fit a table within a single slide?

PostPosted: Fri Jun 07, 2013 11:35 pm
by pupul07
Hello everyone. :)

What I am trying to do is either of the following:

a)Make a table fit within a single slide
No matter how many rows I add, the table shouldn't flow out of the slide boundary.

b)Break off the table into a new slide
If the table overflows, I want to move the extra row(s) to a new slide.
I am aware of how to insert a new slide; however, I can't figure out how I can *detect* the overflow.

Any ideas? :(

Re: How do I fit a table within a single slide?

PostPosted: Sun Jun 09, 2013 9:08 am
by jason
There is no setting on a table that lets you say "scale this to fit on a single slide", nor "automatically spill overflow to next slide".

So you have to do that yourself.

docx4j doesn't include a method to calculate the height of content, but there is nothing to stop you implementing this. If your content is just text in a known font/font size within table cells (of known width etc), an accurate enough guesstimate would be reasonably straightforward. We'd be happy to accept a basic implementation of this as a contribution to the pptx4j codebase, if you'd like others to improve upon/extend your initial implementation. :-)

Re: How do I fit a table within a single slide?

PostPosted: Tue Jun 11, 2013 4:52 pm
by pupul07
Oh! :(

Guess I'll have to go with a guesstimate for now then.

Thanks.

Re: How do I fit a table within a single slide?

PostPosted: Tue Jul 10, 2018 9:54 pm
by arry36
Hi,

I was wondering if we have an implementation for this yet. Or is it still something we have to handle?