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.

Wed Dec 04, 2024 7:59 am

1) In the attached file
2) C#
3) Spire.XLS Pro Edition version 11.8
4) Windows 10 64-bit region setting Japan
5) WebAPI .Net 8

Currently, I see that when converting xlsx files to pdf, there will be problems with font (family, size, weight...), text position in the chart like the picture I took. Please tell me if this can be improved?
Attachments
Report.zip
(356.2 KiB) Downloaded 919 times

khuongdnb
 
Posts: 4
Joined: Tue Nov 05, 2024 6:14 am

Wed Dec 04, 2024 8:55 am

Hello,

Thank you for your inquiry.

Regarding the issue with text positioning, I have reproduced it and logged it into our issue tracking system with the reference number SPIREXLS-5610.

For the font discrepancy, when I opened the document using Adobe Acrobat, I observed that the font size displayed in Excel is 10 pt, whereas in the PDF, it appears as 9.2 pt.
xls.png
xls.png (32.33 KiB) Viewed 22 times

spire.png
spire.png (80.81 KiB) Viewed 22 times

However, when I manually converted your xlsx file to a PDF using Microsoft Excel 2019 and opened it with Adobe Acrobat, the font size was displayed as 9.17 pt.
MS_Excel.png
MS_Excel.png (82.12 KiB) Viewed 22 times


I have uploaded two PDF files for your reference:
The PDF converted by Spire.XLS: spire.pdf
The PDF converted by Microsoft Excel 2019: ms_excel.pdf

Based on the PDF result converted according to Microsoft Excel standards, a slight difference in font size is considered normal.

Sincerely,
Amy
E-iceblue support team
Attachments
spire.zip
(46.92 KiB) Downloaded 960 times
ms_excel.zip
(206.3 KiB) Downloaded 946 times
User avatar

amy.zhao
 
Posts: 2998
Joined: Wed Jun 27, 2012 8:50 am

Thu Dec 19, 2024 9:42 am

Hello,

Thank you for your patience.

I'm glad to inform you that SPIREXLS-5610 has been resolved. Welcome to download and test Spire.XLS Pack(Hotfix) Version:14.12.2.
Our website link: https://www.e-iceblue.com/Download/download-excel-for-net-now.html
NuGet links:
https://www.nuget.org/packages/Spire.XLS/14.12.2
https://www.nuget.org/packages/Spire.XLSfor.NETStandard/14.12.2

If you have any questions, please let us know.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2998
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.XLS