PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 6:10 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Sep 28, 2017 6:56 am 
Offline

Joined: Thu Sep 14, 2017 6:56 am
Posts: 5
I'm creating a pdf document where each page is made up of 4 columns, the columns are generated as a migradoc document with the page size set to the column dimensions to allow for text to flow between them.

I need some way of extracting the paragraphs that flow beyond the 4th "page" and storing them in memory so that I can add them to an appendix at the end of the document.

So far I've only been able to extract the overflow as individual rendered pages(columns) but this leaves a lot of white space if there isn't much overflow, ideally I want to store the overflow paragraphs in a new migradoc document so that I can render it after all the other pages have been drawn.

Any suggestions?

Also, is there any way to remove paragraphs after they have been added?

Thanks,

Will


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 28, 2017 8:16 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
Hi!
wj89 wrote:
Also, is there any way to remove paragraphs after they have been added?
There are "Elements" containers everywhere, including the Section class. You can remove or alter paragraphs any time.

Render in column format, identify the first paragraph on the fifth page, remove all paragraphs before that, and render again with a different page format.
You should activate "KeepTogether" for all paragraphs to avoid having a split paragraph at the end of the fourth page.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 117 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