PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Fri Sep 26, 2025 4:13 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Oct 30, 2012 9:43 pm 
Offline

Joined: Mon Oct 29, 2012 10:34 pm
Posts: 4
Hi,

I have created a pdf document that creates 2 tables. I would like to setup the page so that if both tables fit on the page to put them on 1 page but not to have a page break between the tables.

Is there any way to keep the tables together?

Thanks,
Gloria


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 31, 2012 9:55 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3136
Location: Cologne, Germany
Hi, Gloria,

No way I know. If you know they fit you can add a pagebreak before the first table.
Maybe like this: Render twice (with and without pagebreak) and if the pagecount does not change, keep the pagebreak.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 31, 2012 12:18 pm 
Offline

Joined: Mon Oct 29, 2012 10:34 pm
Posts: 4
Thanks!

I will try that.

Gloria


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 331 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group