PdfDocumentCreateFont(Font, Boolean) Method

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

Definition

Namespace: HiQPdf
Assembly: HiQPdf.NetCore (in HiQPdf.NetCore.dll) Version: 16.0.0
C#
public PdfFont CreateFont(
	Font font,
	bool embed
)

Parameters

font  Font
The .NET font from which to create the PDF font
embed  Boolean
Controls if the font is embedded in the generated PDF document

Return Value

PdfFont
The PDF font corresponding to the .NET font

See Also