PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 8:31 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: Tue Oct 31, 2023 7:34 pm 
Offline

Joined: Tue Oct 31, 2023 7:27 pm
Posts: 2
I have raw text that I convert into a PDF using MigraDoc. The issue I have is that there is a "-" character included and I do not want it to be treated as a soft hyphen.
Is there a way to work with the soft hyphen set and exclude the "-" from the set?

Or a paragraph option to turn wrapping off ?

Thanks,
Ryne


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 31, 2023 7:59 pm 
Offline

Joined: Tue Oct 31, 2023 7:27 pm
Posts: 2
I reverted to just adding a character at a time which is working but not the best performance.


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 01, 2023 5:01 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 916
Location: CCAA
Ryneh@bluebeacon.com wrote:
The issue I have is that there is a "-" character included and I do not want it to be treated as a soft hyphen.
The hyphen is not treated as a soft-hyphen, it is treated as a hyphen.
As a hack, we use the m dash when we need a non-breaking hyphen. Looks slightly different, but prevents MigraDoc from breaking the text.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


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