PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Leading and padding spaces are ignored https://forum.pdfsharp.net/viewtopic.php?f=2&t=1564 |
Page 1 of 1 |
Author: | sdalby [ Sun Feb 27, 2011 8:47 pm ] |
Post subject: | Leading and padding spaces are ignored |
I have to reproduce a fixed font report in PDF where spaces are part of the formating. I have made a textframe that takes up the entire page and fills that with for instance text that is indented by spaces. Unfortunately all leading spaces are ignored and multiple spaces are compressed into one space. Can you assist TIA Best regards Soeren Dalby |
Author: | Thomas Hoevel [ Mon Feb 28, 2011 8:08 am ] |
Post subject: | Re: Leading and padding spaces are ignored |
sdalby wrote: Unfortunately all leading spaces are ignored and multiple spaces are compressed into one space. It's not a bug, it's a MigraDoc feature. Use non-breaking spaces for your purpose. You can use Alt+255 or Alt+0160 (*) on the keyboard or use the Character Map application to copy this character. (*) Hold down the Alt key while you type the digits on the numeric keypad. |
Author: | sdalby [ Mon Feb 28, 2011 8:57 pm ] |
Post subject: | Re: Leading and padding spaces are ignored |
Thomas Hoevel wrote: sdalby wrote: Unfortunately all leading spaces are ignored and multiple spaces are compressed into one space. It's not a bug, it's a MigraDoc feature. Use non-breaking spaces for your purpose. You can use Alt+255 or Alt+0160 (*) on the keyboard or use the Character Map application to copy this character. (*) Hold down the Alt key while you type the digits on the numeric keypad. That worked like a charm. Thank you |
Author: | Ermias1132 [ Fri Apr 01, 2011 8:31 pm ] |
Post subject: | Re: Leading and padding spaces are ignored |
I tried replacing the space character(ASCII: 32) with Alt+255(ASCII: 160) in PDFSharp and it doesn't work. Any workaround for PDFSharp? Thanks |
Author: | Thomas Hoevel [ Mon Apr 04, 2011 8:28 am ] |
Post subject: | Re: Leading and padding spaces are ignored |
Ermias1132 wrote: Any workaround for PDFSharp? I don't understand what the problem is. |
Author: | Ermias1132 [ Mon Apr 04, 2011 2:46 pm ] |
Post subject: | Re: Leading and padding spaces are ignored |
I have a text say "$12.50 " that is right aligned and when I display the text using PDFSharp it shows up as "$12.50" with the trailing spaces trimmed. I tried replacing space character(ASCII: 32) with Alt+255(ASCII: 160) as suggested for MigraDoc, but the trailing spaces are still being trimmed when using PDFSharp. Ermias. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |