Free Support Forum -

PdfSaveOptions embedded font encoding

PdfSaveOptions saving an Excel file to PDF and it is embedding all the fonts used in Excel file. The embedded fonts are encoded as Idenditity-H. Can the embedded fonts are encoded as ANSI?


Thanks for your posting and using Aspose.Cells.

Please provide us your sample excel file and the output pdf as well as screenshot highlighting your issue with red circles. It will help us look into your issue more closely and precisely and we will help you asap.

Thanks for your cooperation.


Please find the attached documents. When we convert the given Excel file to PDF using PdfSaveOptions, it is embedding the fonts with Identity-H encoding. Can we embed with Ansi encoding?


Thanks for your sample files, screenshot and using Aspose.Cells.

We have logged a New Feature request in our database to investigate and support this issue. We will look into it and implement it if possible. Once, there is some news for you, we will let you know asap.

This issue has been logged as

  • CELLSNET-43532 - Ability to embed the fonts with ANSI encoding

This is to inform you that we have fixed your issue now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.


The issue is fixed in v21.5.6.
Aspose.Cells21.5.6 For .Net2_AuthenticodeSigned.Zip (5.5 MB)
Aspose.Cells21.5.6 For .Net4.0.Zip (5.5 MB)
Aspose.Cells21.5.6 For .NetStandard20.Zip (5.5 MB)


Workbook wb = new Workbook(srcFile);

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.FontEncoding = PdfFontEncoding.AnsiPrefer;

wb.Save("output.pdf", pdfSaveOptions);

The issues you have found earlier (filed as CELLSNET-43532) have been fixed in this update. This message was posted using Bugs notification tool by simon.zhao