Hi,
i have found a bug in aspose cells 7.6.0. When I use the following code on a linux machine, all umlauts are overlapped with the following character(s). See attached file. Is there a way to avoid this problem?
Versions:
java version "1.7.0_45"
Java™ SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot™ 64-Bit Server VM (build 24.45-b08, mixed mode)
Debian 6 x64
import com.aspose.cells.Cell;
import com.aspose.cells.Cells;
import com.aspose.cells.FileFormatType;
import com.aspose.cells.Workbook;
import com.aspose.cells.Worksheet;
import com.aspose.cells.WorksheetCollection;
public class CellsBug
{
public static void main(String[] args) throws Exception
{
Workbook workbook = new Workbook();
WorksheetCollection worksheets = workbook.getWorksheets();
Worksheet worksheet = worksheets.get(0);
Cells cells = worksheet.getCells();
Cell cell = cells.get(“A1”);
cell.setValue(“Der Bär hat größeren Ärger als der Österreicher haben würde”);
workbook.save(“test.pdf”, FileFormatType.PDF);
}
}
Kind regards
Peter
Hi,
Thanks for your sample code and template file.
Could you try our latest version/fix:Aspose.Cells for Java v7.6.0.5. It works fine as I tested a bit.
Thank you.
Hi,
tried the newer version with no effect. Still the same overlapping lettters.
Kind regards
Peter
Hi,
I suspect it might be an issue with your fonts on your linux platform either not installed or specified correctly with its path, please make sure that you have installed all the Microsoft true type fonts on your system and then properly specify the fonts directory path in CellsHelper.setFontDir().
e.g
CellsHelper.setFontDir(stringFontPath);
Thank you.
Thanks a lot. This helped.
Hi,
Good to know that it fixes your issue. Feel free to contact us any time if you need further help or have some other issue our queries, we will be happy to assist you soon.
Thank you.