Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Mon Sep 18, 2023 8:14 am

Hi,
I'm converting an xlsx file to pdf format. Some words are broken (moved to a new line) incorrectly. When I convert via excel, there are no such problems. Can you provide any advice on this?
Attachments
res.zip
File with test
(6.95 KiB) Downloaded 430 times
xlsx_to_pdf_spireXLS_.jpg
xlsx_to_pdf_spireXLS_.jpg (422.96 KiB) Viewed 3014 times

Kostegan
 
Posts: 6
Joined: Wed Sep 01, 2021 8:09 am

Mon Sep 18, 2023 10:05 am

Hi,

Thanks for your feedback.
I have conducted tests using the latest version of our product and found that the text in cell A1 appears to be normal. However, there seems to be a minor issue with the text in cell B1.
RESULT.png
RESULT.png (53.1 KiB) Viewed 3001 times

Rest assured that I have logged this problem in our issue tracking system with the ticket number SPIREXLS-4903, Our development team will investigate and fix it. We apologize for any inconvenience caused, once the issue is fixed, we will inform you asap.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Tue Sep 26, 2023 9:44 am

Hi,

Thanks for your patience.
Our dev team has determined that the desired outcome you mentioned aligns with the effect achieved in English language mode. Therefore, to ensure the desired conversion results, we recommend adding the following line of code during the conversion process: "Locale.setDefault(Locale.US);"

By setting the default locale to US English, the conversion process will be adjusted accordingly to match the desired effect.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.XLS

cron