We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Italic font bold font conversion error

Hi,
The English equivalents of the texts in the original document are written in italic font. When the document is converted to PDF, the italic type is converted to bold type.
I attached the original file and corrupted file. We are using Aspose.Excell 19.4 version. Thanks.
YG8238.zip (650.5 KB)

@srmbimser,
We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSNET-46708 - Italic font converted to Bold while converting to PDF

@srmbimser,

We evaluated your issue further.
For your highlighted part in B4, there is no issue. The font set in the source file is “Times New Roman” with Bold and Italic style. It is same as the output in PDF file.

For the other parts you highlighted, the font set in the source file is “Times New Roman Tur” with Bold and Italic style (see my attachment: “font_highlight.png”). It seems that the font is not installed on your side, the font is substituted to “Arial” font. The user can install the “Times New Roman Tur” font or set font substitute for it using the following code:

FontConfigs.SetFontSubstitutes("Times New Roman Tur", new string[] { "Times New Roman" });
Workbook wb = new Workbook(srcFile);
Console.WriteLine(wb.DefaultStyle.Font);

wb.Save(outFile.pdf);

Also, we attached the PDF file saved by MS Excel 2016 (see attachment"F.1453_9_Excel2016.pdf"). The “Times New Roman Tur” font is substituted to “Times New Roman” font.
font_highlight.png (325.9 KB)
F.1453_9_Excel2016.pdf (769.2 KB)