Hi,
Thanks for your inquiry.
Kindly note that when the fonts are not existed or not installed, Spire.Doc will find the similar fonts for replacement.
In you document, there are actually two fonts, “Algerian” and “Arial”, I did a conversion, the fonts used in result document are the same as the Word document, then I replaced the “Arial” into “Calibri” and did a test, the result is also correct, I did not reproduce your issue. I have attached my test documents for your reference.
In addition, you can put font files in a folder and try the following code.
- Code: Select all
Document doc = new Document();
doc.LoadFromFile("test.docx");
PdfDocument.SetCustomFontsFolders("myfontfolder")
doc.SaveToFile("test.pdf",Spire.Doc.FileFormat.PDF);
If your issue still exists, please provide us with the following messages. Thanks for your assistance.
1) the version of Spire.Doc in your project.
2) the input and output files.
Sincerely,
Triste
E-iceblue support team
Login to view the files attached to this post.