View previous topic :: View next topic |
Author |
Message |
muntablues
Joined: 03 Dec 2008 Posts: 4
|
Posted: Wed Dec 03, 2008 4:24 pm Post subject: MigraDoc and spaces |
|
|
Hi
I add my text using
paragraph.AddFormattedText(_text, "Normal");
My problem is that my input rtf is formated with spaces, but this spaces are deleted by MigraDoc. Is there a flag which I can set to "switch off" this behavior.
I could convert my input text to a chararray and look for spaces inside but I think that would be a overkill.
Thanks MB |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Thu Dec 04, 2008 8:41 am Post subject: |
|
|
Hi!
MigraDoc treats spaces much like HTML - and therefore you can use the same trick: if spaces must be kept use non-breakable spaces (NBSP, keyboard: Alt+<255>).
Replace ordinary spaces (Alt+<32>) with NBSP before adding text. _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
muntablues
Joined: 03 Dec 2008 Posts: 4
|
Posted: Thu Dec 04, 2008 9:17 am Post subject: |
|
|
Hi Thomas
Thank you very much, its works great! I love PDFSharp!
MB |
|
Back to top |
|
|
|