Winnovative Excel to PDF Converter

Document.AddFont Method (Font, Boolean)

Winnovative Excel to PDF Converter Documentation
Adds a system font to the fonts collection. If the font was already added the method returns the existing font. The embedFont property indicates if the added font will be embedded into the PDF document.

Namespace:  Winnovative.ExcelToPdf
Assembly:  wnvexceltopdf (in wnvexceltopdf.dll) Version: 10.0.0.0
Syntax

public PdfFont AddFont(
	Font font,
	bool embedFont
)

Parameters

font
Type: System.Drawing.Font
Font for adding.
embedFont
Type: System.Boolean
When true the font will be embedded in the PDF document.

Return Value

Type: PdfFont
The font added to the collection.
See Also

Reference