Tries to embed font bytes into the PDF file.
public bool Embed()
trueif font bytes were successfully found and embedded; otherwise,
This method might fail to embed font bytes in the following cases:
Font is already embedded. The Embedded
truefor 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.