PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Want tables to not be pushed to next page.
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1830
Page 1 of 1

Author:  pdfdude [ Mon Oct 24, 2011 4:50 am ]
Post subject:  Want tables to not be pushed to next page.

I noticed if a table is too big to fit on a page it is pushed down to the next page. I would prefer to keep the table on the current page and allow it to split over the following pages. How can I do this? I have tried KeepTogether true/false but it has no effect.

Also is there a way to apply vertical or horizontal padding to any DocumentObject? For example I have a heading paragraph then a body paragraph underneath. I'd like to add some padding between them without putting them in table cells. Is that possible?

Thanks, MigraDoc is looking very good so far.

Author:  Thomas Hoevel [ Mon Oct 24, 2011 7:35 am ]
Post subject:  Re: Want tables to not be pushed to next page.

pdfdude wrote:
I noticed if a table is too big to fit on a page it is pushed down to the next page. I would prefer to keep the table on the current page and allow it to split over the following pages. How can I do this? I have tried KeepTogether true/false but it has no effect.
Tables will break to next page, but table cells won't break. Huge rows will be kept together and will move to the next page if they don't fit the current page.

pdfdude wrote:
Also is there a way to apply vertical or horizontal padding to any DocumentObject? For example I have a heading paragraph then a body paragraph underneath. I'd like to add some padding between them without putting them in table cells. Is that possible?
Use SpaceBefore and SpaceAfter of the Style or the Paragraph.
The gap between two paragraphs is the maximum of SpaceAfter of the first and SpaceBefore of the second paragraph.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/