C# word interop在转换为pdf c时嵌入字体#

C# word interop在转换为pdf c时嵌入字体#,c#,office-interop,C#,Office Interop,我使用以下命令将word保存到pdf: private Microsoft.Office.Interop.Word.Application _wordApp; _wordApp.ActiveDocument.EmbedTrueTypeFonts = true; _wordApp.ActiveDocument.SaveAs2(MergedDocumentFullOutputPath, Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatPDF);

我使用以下命令将word保存到pdf:

private Microsoft.Office.Interop.Word.Application _wordApp;

_wordApp.ActiveDocument.EmbedTrueTypeFonts = true;
_wordApp.ActiveDocument.SaveAs2(MergedDocumentFullOutputPath, Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatPDF);

我可以保存为pdf,但很少有字体不嵌入。如果可能的话,我也想嵌入系统字体。

Word 2013-2016不支持使用开放式字体(.otf)或其他格式的字体嵌入,它只支持使用TrueType字体(.ttf)的字体嵌入

要解决此问题,您只需执行以下简单步骤:

  • 使用转换器将字体转换为.ttf。我用过这个网站 .
  • 安装转换后的文件。你会的 提示字体已安装,请选择“是”进行替换 旧装置
  • 享受:)

  • 您还可以指定此选项,该选项可能会嵌入一些原本不会嵌入的字体

    _wordApp.ActiveDocument.DoNotEmbedSystemFonts = false;