Bytescout.PDF for .NET |
Bytescout.PDF library for .NET
- loading font from file for use in PDF document
Loading fonts from files to use for text in PDF documents
This example demonstrates how to load font from file and how to use this font to add text into PDF document generated using Bytescout.PDF library. You can also use built-in PDF fonts (see sample)
using System; namespace HelloWorld // Add new document // Append new page to the document // Create new drawing // font size constant // get path to Windows folder // Create array with font types // X position of the text to draw // Draw all font types // Set Active Font // Draw Text // Increase position of the next text
// open generated PDF document in default PDF viewer installed
in Windows Download example source code: bytescoutpdf_fonts_from_file_names_ttf.zip (25 KB)
"Hello, World!" quick start step-by-step tutorials: |
|
|
||