PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Apr 26, 2024 5:28 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Mon Apr 25, 2016 12:02 pm 
Offline
User avatar

Joined: Fri Apr 01, 2016 11:20 am
Posts: 5
i want to apply the break-word style in MigraDoc.Rendering.Document.RenderObject function

below mentioned in my code docRenderer.RenderObject(gfx,0,0, 100, paragraph); i want to apply word-wrap: break-word like css style?

If there, please help me to come out from this problem.
Thank you in advance.

my code is
Code:
 Document doc = new Document();
 Section sec = doc.AddSection();
 //// Add a single paragraph with some text and format information.
 Paragraph paragraph = doc.LastSection.AddParagraph();
 MigraDoc.DocumentObjectModel.Font fntStyle = new MigraDoc.DocumentObjectModel.Font();
 fntStyle.Bold = true;
 fntStyle.Name = "Arial"
 paragraph.AddFormattedText("sample text", fntStyle);
 MigraDoc.Rendering.DocumentRenderer docRenderer = new DocumentRenderer(doc);
 docRenderer.PrepareDocument();
 docRenderer.RenderObject(gfx,0,0, 100, paragraph);


Attachments:
File comment: This is my PDF file
1.jpg
1.jpg [ 193.28 KiB | Viewed 3601 times ]

_________________
Shaik Nasurudeen Sr. Software Engineer, NCS SoftSolutions (P) Ltd.
+ 91 (44) 2473 5415 - 17
nasurudeen@ncssoft.in
No. 70, IInd Floor, Arya Gowda Road, West Mambalam, Chennai, TamilNadu, India - 600033
Top
 Profile  
 
PostPosted: Mon Apr 25, 2016 2:43 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Hi!

Add soft hyphens where the word may break.

See also:
viewtopic.php?p=6834#p6834

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC


Who is online

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