PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jun 30, 2024 2:21 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Dec 06, 2012 12:56 pm 
Offline

Joined: Mon Nov 01, 2010 2:23 pm
Posts: 17
Location: Prague, Czech Republic
I have a table (defined using MigraDoc) in which I set the column widths manually. I put in some content (which might be wider than the column). If I export the document to RTF, it looks OK. However, in PDF the part of the content which does not fit in the column overflows on the next line, so that it is drawn over whatever is under it. Is there a way to prevent this behaviour?


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 06, 2012 1:08 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
Hi!
crypto_rsa wrote:
However, in PDF the part of the content which does not fit in the column overflows on the next line, so that it is drawn over whatever is under it.
Row height is normally determined automatically, so if content breaks into the next line, the table grows with the contents.

In PDF, text will only break at spaces or hyphens. If a single "word" is wider than the column, it will be drawn over the next column. Insert soft hyphens in long "words" to allow MigraDoc to break them.

See also:
viewtopic.php?p=6177#p6177

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 06, 2012 1:16 pm 
Offline

Joined: Mon Nov 01, 2010 2:23 pm
Posts: 17
Location: Prague, Czech Republic
Is there a way to "clip" the content to the column (so that the overflowing part will not be visible) instead of breaking it to the next line?


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 06, 2012 1:27 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
Here is code that does it:
viewtopic.php?p=6156#p6156

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

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