PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Sep 27, 2024 9:22 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Aug 19, 2009 4:13 am 
Offline

Joined: Wed Aug 19, 2009 4:04 am
Posts: 10
I have this text:

Code:
abcdef              abcdef    abcdef

I put it in a paragraph and the PDF render will remove the extra spaces, so the text will look like this (in PDF file):
Code:
abcdef abcdef abcdef

How can I keep the extra spaces?

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 20, 2009 6:21 am 
Offline

Joined: Wed Aug 19, 2009 4:04 am
Posts: 10
I found the solution: Count the spaces and add by Paragraph.AddSpace(count). Anyway, I think it's better to have an option to keep the spaces.

Hope that help somebody


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 24, 2009 8:23 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3110
Location: Cologne, Germany
MigraDoc works much like HTML: multiple normal spaces are treated as one space.
Use non-breakable spaces to preserve them: Alt+0160 (Alt+255) does the trick on the keyboard.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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