PdfSaveOptions.FontEmbeddingMode

PdfSaveOptions FontEmbeddingMode property. Specifies the font embedding mode.

PdfSaveOptions.FontEmbeddingMode property

Specifies the font embedding mode.

public PdfFontEmbeddingMode FontEmbeddingMode { get; set; }

Remarks

The default value is EmbedAll.

This setting works only for the text in ANSI (Windows-1252) encoding. If the document contains non-ANSI text then corresponding fonts will be embedded regardless of this setting.

PDF/A and PDF/UA compliance requires all fonts to be embedded. EmbedAll value will be used automatically when saving to PDF/A and PDF/UA.

Examples

Shows how to configure font embedding mode in PDF.

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.FontEmbeddingMode = PdfFontEmbeddingMode.EmbedNonstandard;

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "PdfSaveOptions.FontEmbeddingMode.pdf", pdfSaveOptions)
    .Execute();

See Also