Click or drag to resize
Pdf Library for .NET

PdfFontCollectionAdd(String) Method

Adds a TrueType / OpenType font loaded from a file. The font is subset-embedded into the output document — use this path for PDF/A / PDF/X output from scratch.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax
public PdfFont Add(
	string fontFilename
)

Parameters

fontFilename  String
Path to a .ttf / .otf file.

Return Value

PdfFont
The PdfFont wrapper for the added font.
See Also