| PDFsharp & MigraDoc Forum https://forum.pdfsharp.net/ |
|
| Leading/Line Spacing in PDF Sharp https://forum.pdfsharp.net/viewtopic.php?f=2&t=2951 |
Page 1 of 1 |
| Author: | JokerMartini [ Mon Oct 13, 2014 3:43 pm ] |
| Post subject: | Leading/Line Spacing in PDF Sharp |
How can I adjust the linespacing of text I'm generating in PDFSharp? Code: XFont font_H5 = new XFont("Verdana", 11, XFontStyle.Regular);
XTextFormatter tfD = new XTextFormatter(gfx); XRect rectD = new XRect(0, 170, 190, 600); gfx.DrawRectangle(XBrushes.Transparent, rectD); tfD.Alignment = XParagraphAlignment.Center; string servicesTXT = ""; foreach (string service in servicesList) { servicesTXT += service; servicesTXT += "\n"; } tfD.DrawString(servicesTXT, font_H5, XBrushes.Black, rectD, XStringFormats.TopLeft); |
|
| Author: | Thomas Hoevel [ Mon Oct 13, 2014 3:48 pm ] |
| Post subject: | Re: Leading/Line Spacing in PDF Sharp |
See also: viewtopic.php?p=8554#p8554 |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|