PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Sep 24, 2018 5:05 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Drawing multiline string
PostPosted: Thu Jul 03, 2008 3:03 pm 
Offline

Joined: Wed Jul 02, 2008 2:33 pm
Posts: 2
When I use this code I expect a multiline text

using (XGraphics gfx = XGraphics.FromPdfPage(page))
{
string text = "aaa\r\nbbb\ncccc";
gfx.DrawString(text, font, XBrushes.Black, 20, 20);
}

In fact, when I draw in a winform using gdi+ this text renders in multiple lines.
Is there a way to achieve this with pdf sharp?


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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