PdfDocument.AddFontFromFile Method (String)

Creates a new font using provided font file and adds the new font to the end of the collection of document fonts.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfFont AddFontFromFile(
	string fileName
)
VB
Public Function AddFontFromFile ( 
	fileName As String
) As PdfFont

Parameters

fileName
Type: System.String
The name of the font file.

Return Value

Type: PdfFont
The newly added PdfFont.

Remarks

This method accepts OpenType, TrueType, and Type1 font files.

See Also