HiQPdf Documentation

PdfDocumentCreateFont Method (Font, Boolean)

Quickly Create High Quality PDFs
Creates a PDF font from the given .NET font and optionally embeds the font in the generated PDF document based on embed parameter value

Namespace:  HiQPdf
Assembly:  HiQPdf (in HiQPdf.dll) Version: 12.0.0.0
Syntax

public PdfFont CreateFont(
	Font font,
	bool embed
)

Parameters

font
Type: System.DrawingFont
The .NET font from which to create the PDF font
embed
Type: SystemBoolean
Controls if the font is embedded in the generated PDF document

Return Value

Type: PdfFont
The PDF font corresponding to the .NET font
See Also

Reference