PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Change the default Line Height https://forum.pdfsharp.net/viewtopic.php?f=2&t=1477 |
Page 1 of 1 |
Author: | tickles [ Wed Dec 15, 2010 5:36 pm ] |
Post subject: | Change the default Line Height |
Dear All, I am trying to change the line height of the font that gets printed onto the PDF. Here is the code so far Code: var outputDocument = new PdfDocument();
var count = pdfTemplate.PageCount; var codeFont = new XFont("Arial", 10, XFontStyle.Bold); var merchantFont = new XFont("Arial", 15, XFontStyle.Regular); var voucherTextFont = new XFont("Arial", 10, XFontStyle.Regular); var redeemFont = new XFont("Arial", 10, XFontStyle.Regular); var termsFont = new XFont("Arial", 7, XFontStyle.Regular); var terms = new PdfWordWrapper(gfx, 600); // 137 terms.Add(Tickle.TandC, termsFont, XBrushes.Black); terms.Process(); terms.Draw(gfx, 10, 200, PdfWordWrapper.Alignment.Left); |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |