@Muhammed.Karattu,
We have reproduced this issue here and logged it our database for further investigation. You will be notified here once any update is ready for sharing.
This issue is logged as: CELLSJAVA-43504 - Poor quality EMF generated in Linux
Please make sure that the “Arial” fonts (Both ‘Regular’ and ‘Bold’ style) used in the source file are installed on your linux machine and set by APIs on FontConfigs . e.g. FontConfigs.setFontFolder("Arial Fonts folder path", true);
We checked your EMF file (for linux issue) and found it is the missing font issue. Please share more information and details about your environment e.g. System info, JDK info., etc. Also, make sure the fonts in the font folder can be accessed from your program seamlessly, there should not be any rights issue. Moreover, the fonts folder setting line of code, e.g.: “com.aspose.cells.FontConfigs.setFontFolder("/usr/share/X11/fonts/TTF/font", true);” should be pasted at the beginning before Workbook initialization or any other code regarding Aspose.Cells APIs. See the document for your reference:
Furthermore, we also ask you to kindly add a line to your code to save to PDF file format and provide that output PDF file as well. This way we can also confirm which fonts are used in output PDF on your end.
Hi,
I tried the code snippet you suggested and it was giving the following Exception.
Exception in thread “main” java.awt.FontFormatException: bad table, tag=1146308935
at sun.font.TrueTypeFont.init(TrueTypeFont.java:564)
at sun.font.TrueTypeFont.(TrueTypeFont.java:198)
at sun.font.TrueTypeFont.(TrueTypeFont.java:178)
at sun.font.SunFontManager.createFont2D(SunFontManager.java:2461)
at java.awt.Font.(Font.java:615)
at java.awt.Font.createFont(Font.java:1056)
at AsposeImageQuality.main(AsposeImageQuality.java:39)
I downloaded arial from from the following url and it’s working fine.
Good to know that your issue is sorted out by installing the relevant true type font properly. In the event of further queries or issue, feel free to write us back.