@kkevin2 Could you please attach your input and output documents here for testing? We will check the issue and provide you more information. Unfortunately it is impossible to analyze the problem using screenshot.
@kkevin2 The '方正小标宋简体'
font used in your document is not available on my side. Could you please attach this font here for testing too?
Also, as I can see you are using an extremally old version (15.8) of Aspose.Words. Please try using the latest 24.5 version of Aspose.Words.
@kkevin2 Thank you for additional information. Unfortunately, I cannot reproduce the problem on my side. Here is PDF document produced on my side: out.pdf (68.7 KB)
The document looks the same as source document in MS Word.
Hello, can you provide the converted code for us to refer to?
@kkevin2 The following simpel code is used for conversion:
// C:\\temp\\fonts folder contains the additional font you have provided earlier.
FontSettings.getDefaultInstance().setFontsSources(new FontSourceBase[] { new SystemFontSource(), new FolderFontSource("C:\\temp\\fonts", true) });
Document doc = new Document("C:\\Temp\\in.docx");
doc.save("C:\\Temp\\out.pdf");