- Code: Select all
[TestMethod]
public void TestMethod3()
{
var word = new Spire.Doc.Document(@"c:\0spire\import.docx");
word.SaveToFile(@"c:\0spire\Export.docx");
word.SaveToFile(@"c:\0spire\Export.pdf", new Spire.Doc.ToPdfParameterList() { UsePSCoversion = true });
}
Expected fonts in exported pdf (Export.pdf):
font: Ebrima
font: CambriaMath
both fonts are available in c:\windows\fonts
When export.docx is opened and saved by MS Word as pdf, the above mentioned fonts are embedded in the PDF.
I am using Spire.Doc (11.7.25) and Spire.PDF(9.7.17)
Thanks in advance.