PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Drawing multiline string
https://forum.pdfsharp.net/viewtopic.php?f=3&t=427
Page 1 of 1

Author:  marcosb [ Thu Jul 03, 2008 3:03 pm ]
Post subject:  Drawing multiline string

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?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/