PdfFont.Embed Method

Tries to embed font bytes into the PDF file.

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

Syntax

C#
public bool Embed()
VB
Public Function Embed As Boolean

Return Value

Type: Boolean
true if font bytes were successfully found and embedded; otherwise, false.

Remarks

This method might fail to embed font bytes in the following cases:

  • Font is already embedded. The Embedded property is true for such fonts.
  • Font is not allowed to be embedded in documents (according to the license associated with the font).
  • TrueType/OpenType font bytes were not loaded by FontLoader.
  • Type1 font bytes were not found in the collection of built-in PDF fonts.
  • Font is a Type3 font. Type3 fonts are always embedded by its nature.

See Also