How to set the active font in PDFThe following code creates a PDF with sample text using the ARIAL font style. c# sample: PDFDocument doc = new PDFDocument("sample.pdf"); doc.CurrentPage.Body.SetActiveFont("Arial", PDFFontStyles.Regular, 12); doc.CurrentPage.Body.AddText("Sample text."); doc.Save(); |
PDF .NET Library for .NET Software Developers - PDF Component Library for C#, VB.NET and ASP.NET developers Copyright © PDF Technologies Inc., 2010. |