Table of Contents

Enum PdfFontType

Namespace
Syncfusion.Pdf.Graphics
Assembly
Syncfusion.Pdf.Portable.dll

Specifies the type of the font.

public enum PdfFontType

Fields

Standard = 0

Indicates the standard Adobe fonts.

TrueType = 1

Indicates the non-embedded TrueType fonts.

TrueTypeEmbedded = 2

Indicates the Embedded TrueType fonts.

Examples

//Load the existing PDF document.
PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf");
//Get the use fonts.
PdfUsedFont[] fonts = ldoc.UsedFonts;
//Get the used font type.
PdfFontType fontType = fonts[0].Type;
//Close the document.
ldoc.Close(true);
'Load the existing PDF document
Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf")
'Get the use fonts.
Dim fonts() As PdfUsedFont = ldoc.UsedFonts      
'Get the used font type
Dim fontType As PdfFontType = fonts(0).Type
'Close the document.
ldoc.Close(True)