Problems converting word to pdf

When I converted a word document to a pdf document, the chart title has been changed from Chinese to English. How can I keep it unchanged?
version:aspose-words-25.9-jdk17

Even if I use this code, it still doesn’t work.


loadOptions.getLanguagePreferences().setDefaultEditingLanguage(EditingLanguage.CHINESE_PRC);

@serendipity.zhq

To maintain the Chinese chart title when converting a Word document to PDF using Aspose.Words, ensure that the document’s language settings are correctly configured. Here are some important considerations:

  1. Font Availability: Verify that the font used for the chart title supports Chinese characters and is installed on the system where the conversion is taking place.

  2. Document Language Settings: While setting the default editing language is important, you may also need to explicitly set the language for specific elements in the document, if applicable.

  3. Update Aspose.Words: If you are using an older version of Aspose.Words, consider updating to the latest version, as there may be bug fixes or improvements related to language handling.

Here’s a sample code snippet to set the language preferences:

Document doc = new Document("input.docx");
doc.getStyles().getDefaultFont().setName("YourChineseFont"); // Ensure the font supports Chinese
doc.save("output.pdf");

If the issue persists, consider rendering the document to an image format first, then converting that image to PDF, as a workaround to ensure the chart title is displayed correctly.

For further assistance, consult the Aspose documentation or community forums for specific settings related to chart titles and language handling.

@serendipity.zhq Could you please attach your problematic input document here for testing? We will check the issue and provide you more information.

word:
含visio复杂对象测试.docx (1.3 MB)

pdf:
test1.pdf (1.2 MB)

@serendipity.zhq
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-28731

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.