PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Jul 01, 2024 6:25 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sun Feb 27, 2011 8:47 pm 
Offline

Joined: Sun Feb 27, 2011 8:40 pm
Posts: 4
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 28, 2011 8:08 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 28, 2011 8:57 pm 
Offline

Joined: Sun Feb 27, 2011 8:40 pm
Posts: 4
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 :)


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 01, 2011 8:31 pm 
Offline

Joined: Fri Apr 01, 2011 8:28 pm
Posts: 2
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 04, 2011 8:28 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
Ermias1132 wrote:
Any workaround for PDFSharp?

I don't understand what the problem is.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 04, 2011 2:46 pm 
Offline

Joined: Fri Apr 01, 2011 8:28 pm
Posts: 2
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 55 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