PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Jul 26, 2024 11:17 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Multiline Texts
PostPosted: Sun Dec 26, 2010 6:23 pm 
Offline

Joined: Sun Dec 26, 2010 6:17 pm
Posts: 1
Hi how can I add text to a PDF document that has multiple lines of text that I get from a multiline textbox which is not in multiple lines not in one single line.

When I add text like:

jsdkjfhsdfsdf
dsf
sd
fsd
fsd
fds
sdf


sdsdf


in a textbox then click create document then it puts it in a single line not double line.

Thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Multiline Texts
PostPosted: Mon Dec 27, 2010 6:28 pm 
Offline
Supporter
User avatar

Joined: Thu May 27, 2010 7:40 pm
Posts: 59
Location: New Hampshire, USA
Simply add each word as in its own paragraph. If you add all the words to a single paragraph MigraDoc will attempt layout a single paragraph and word wrap the paragraph to fit the area.

Alternatively, you could add the MigraDoc line break character (SymbolName.LineBreak) following each word.

-Jeff


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 68 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