PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

How to keep the extra spaces in paragraph?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=839
Page 1 of 1

Author:  t800t8 [ Wed Aug 19, 2009 4:13 am ]
Post subject:  How to keep the extra spaces in paragraph?

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

Author:  t800t8 [ Thu Aug 20, 2009 6:21 am ]
Post subject:  Re: How to keep the extra spaces in paragraph?

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

Author:  Thomas Hoevel [ Mon Aug 24, 2009 8:23 am ]
Post subject:  Re: How to keep the extra spaces in paragraph?

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/