Method Embed
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Embed()
Tries to embed font bytes into the PDF file.
public bool Embed()
Returns
- bool
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.