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

Free Support Forum - aspose.com

Different font is used converting excel to pdf (2/3)

Hi,

converting the provided Excel-File, the font Arial-Bold is used, instead of Arial (you can find the string “Arial-Bold” in the pdf-file). Could you please check?
I use Cells 8.0.2.0 and this code:

string strFile = @“C:_Temp\Aspose_Excel2Pdf\Daten\mod.xlsx”;
string sInFile = strFile;
string sOutFile = strFile + “.pdf”;

Aspose.Cells.License cLic = new Aspose.Cells.License();
cLic.SetLicense(“Aspose.Total.lic”);
Workbook workbook = new Workbook(sInFile);
workbook.RemoveMacro();
Aspose.Cells.Rendering.ImageOrPrintOptions saveOptionsCell = new Aspose.Cells.Rendering.ImageOrPrintOptions();
saveOptionsCell.SaveFormat = Aspose.Cells.SaveFormat.Pdf;
workbook.Save(sOutFile, Aspose.Cells.SaveFormat.Pdf);
workbook.Worksheets.Clear();

Kind regards,
Oliver

Hi Oliver,


Thank you for contacting Aspose support.

We have evaluated your presented scenario on our end while using the latest version of Aspose.Cells for .NET 8.2.0.3, and we believe that the correct fonts are used to render the text in resultant PDF file. You may check this by viewing the embedded font list through the PDF properties, you will notice that Arial-BoldMT is embedded in the PDF file. If you are comparing the PDF files generated with MS Office applications against the Aspose.Cells API, then you should know that Aspose.Cells behave differently while embedding fonts in the resultant PDF because Aspose.Cells API uses CID fonts.

If you meant something else, please elaborate your concerns further by providing us the snapshot(s) highlighting the problematic area(s).

Hi,

thank you for your investigation. I think you are right, the font is correct.

We can regard this incident as solved.

Kind regards

Oliver

Hi Oliver,


Thank you for the confirmation on this. Please feel free to write back in case you need our further assistance with Aspose APIs.