PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 20, 2024 1:40 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Aug 11, 2016 6:34 am 
Offline

Joined: Tue Aug 09, 2016 10:37 am
Posts: 4
Hi Team,

I want to make the paragraph to upper letters.
Can it be possible ?
I couldn't find a option for this in Migradoc.
Can any one please help me on this.


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 11, 2016 7:03 am 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 340
Hi!

Call string.ToUpper() before passing the text to AddParagraph().

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 11, 2016 9:00 am 
Offline

Joined: Tue Aug 09, 2016 10:37 am
Posts: 4
Hi,

Thanks for replying

I developed MS WORD to PDF Conversion application.
Here I can tell the text is upper, only because of ms word styles.

other than the String.ToUpper() function
any other alternate ??


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 11, 2016 9:17 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Hi!
soma44 wrote:
other than the String.ToUpper() function
any other alternate?
You can take the MigraDoc source code and implement "AllCaps" and "SmallCaps" styles.
String.ToUpper() is the simple solution.

There is no simple solution for SmallCaps. I think I'd use a combination of AddFormattedText and string.ToUpper().

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

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