Save DOCX to PDF character difference

Hello,
If you have a PDF document, you don’t have to type the text to read it.

Thanks in advance

1P272pStr18.docx (44.1 KB)

@benestom The problem is not reproducible on my side using the latest 25.7 version of Aspose.Words. Could you please attach your problematic output document here for our reference?

I downloaded the latest version you’re using and the result is the same, I just probably described it incorrectly in the text, so I’d rather send a screenshot with a significant difference.

@benestom Unfortunately, I cannot reproduce the problem on my side using the latest 25.7 version of Aspose.Words and the following simple code:

Document doc = new Document(@"C:\Temp\in.docx");
doc.Save(@"C:\Temp\out.pdf");

Here is the produced output: out.pdf (111.0 KB)

Usually, the such problems occur because the fonts used in your input document are not available on the machine where document is converted to PDF. The fonts are required to build document layout. If Aspose.Words cannot find the font used in the document, the font is substituted . This might lead into fonts mismatch and document layout differences due to the different fonts metrics. You can implement IWarningCallback to get notifications when font substitution is performed.
Please see our documentation to learn where Aspose.Words looks for fonts:
https://docs.aspose.com/words/net/specifying-truetype-fonts-location/

In your output PDF it is wrong. It changes see the picture. On the left Word in the right PDF

The font is Arial, which the server definitely contains. Aspopose probably loads the font incorrectly when creating a grouped scheme.

If I generate the PDF in the WORD application it is fine

@benestom Could you please attach PDF document produced on your side?

1P272pStr18_257Wrod.pdf (171.4 KB)

This is a PDF generated in MS Word.

I have the same document generated in Aspose as you.

@benestom MS Word on my side produces the same output as Aspose.Words does: ms.pdf (189.2 KB)

What preferred editing language is specified in MS Word on your side?

You probably can’t simulate it because I have the Czech language pack in ms word.

I found another document that contains the same image but this problem doesn’t appear here. Do you know what it could be? at first glance they look the same but the result is ok for me
4P272pStr18_257.docx (65.8 KB)

@benestom The problem is not reproducible with 4P272pStr18_257.docx document on my side too. The images in the documents are actually different. in 1P272pStr18.docx image is in WMF format, and in 4P272pStr18_257.docx image is in EMF format.
I tried setting Czech language as default editing language on my side, but still MS Word shows WMF image like this: