PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Feb 27, 2021 3:46 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: Wed Mar 14, 2012 1:27 pm 
Offline

Joined: Wed Mar 14, 2012 1:17 pm
Posts: 1
I am trying to use Migradoc (great software btw) to print out text where white space between words is needing to be preserved.

The text might look like:

Text 1 Text 2 Text3
Really long sentence blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah


If I use the suggestion of Alt255 spacing, the white space is preserved but this breaks word wrap for the paragraph and the text just keeps on going off the end of the page.

Is there a better work around?


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 16, 2012 9:34 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3047
Location: Cologne, Germany
The Alt+255 (non-breaking space) is required only if you need more than 1 space between two words.

I'd try this: for n spaces, use (n-1) non-breaking spaces (Alt+255) followed by a single normal space.

_________________
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 16 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