1

I use Aspose.Cells for java to convert excel documents to html. But there is problem with umlauts.

there is the code I use to save excel documents to html

com.aspose.cells.Workbook workbook = new com.aspose.cells.Workbook(stream);
workbook.save(path, com.aspose.cells.SaveFormat.HTML);

Screenshot ot the result

is there some way to resolve this?

DIF
  • 2,470
  • 6
  • 35
  • 49
Anton
  • 11
  • 1

1 Answers1

2

This type of issues might occur due to missing fonts. Since Aspose.Cells needs the underlying fonts (used in the workbook) to be installed on the system for rendering to PDF, HTML or image, so you got to make sure all the underlying fonts are there on the pc and your application should access to that folder. You can also find the needed fonts for your workbook using Workbook.getFonts() method. You may put all the font files (.ttf files) in some folder and set the fonts directory at the start before using your original code. e.g Sample code:

......
String MyFontDir = "your_fonts_folder_path";

// Setting the fonts folder with setFontFolder method
FontConfigs.setFontFolder(MyFontDir, true);

//.......
//Your code goes here.    
//...... 

I am working as Support developer/ Evangelist at Aspose.

Amjad Sahi
  • 1,813
  • 1
  • 10
  • 15