PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Wed Apr 01, 2026 3:04 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
 Post subject: Adding page totals
PostPosted: Wed Sep 18, 2013 6:43 am 
Offline

Joined: Wed Sep 18, 2013 6:36 am
Posts: 2
Hello there!!

I need to export an invoice as a .pdf file. This Includes records that will very likely extend beyond one page, so we need a sum per page at the end of each page. I think, as I have searched through this forum, that there is no way to know when a table will page-break, right? Any suggestions on how to achieve that? Any way to know when the page will break inside a table?

thanx in advance!!


Top
 Profile  
Reply with quote  
 Post subject: Re: Adding page totals
PostPosted: Wed Sep 18, 2013 9:20 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3144
Location: Cologne, Germany
dimmal wrote:
Any way to know when the page will break inside a table?
No.

If all items have the same height, just figure out how many items fit one page and start a new page/a new table when needed.

If items have varying heights, measure the height of each item and start a new page/a new table when needed.

Or do a hack: add each item in a new table (without header) and add a tag to each item. After rendering the PDF, you can use PDFsharp to add the table headers and the page sums.

See also:
http://www.pdfsharp.net/wiki/MixMigraDo ... ample.ashx

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: Adding page totals
PostPosted: Wed Sep 18, 2013 10:19 am 
Offline

Joined: Wed Sep 18, 2013 6:36 am
Posts: 2
Thanx a lo for your quick answer!


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 562 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