Bytescout.PDF for .NET |
Bytescout.PDF library for .NET
- using built-in standard fonts in PDF
Using standard fonts for text in PDF documents
This example demonstrates how to use built-in "standard" fonts for text in PDF If you need to use another font then you can load font using its name (if font is installed in system) or TTF font file
using System; namespace HelloWorld // Add new document // Append new page to the document // Create new drawing // font size constant // 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.zip (5 KB)
"Hello, World!" quick start step-by-step tutorials: |
|
|
||