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

Free Support Forum - aspose.com

Aspose.Cells do not work on Linux Box post Deployment

Hi Support Team,

I am using the latest and stable version of Aspose.Cells and wanted to check functionality for ConvertToPDF feature from (.xlsx->PDF). But I am getting below error from last couple of weeks and its not yet Resolved. Tried all the solutions that I found on web, forums, google etc. I am using .NET CORE C# 3.1 version. Do I need to add any file in Linux Bundle.

image.png (6.6 KB)

Below is the code snippet.
image.png (45.6 KB)

Kindly help me on this and I have a critical deliverables.

@poonammishra,

It looks like Graphics Library is not installed properly on your linux system. Also, make sure the “EnableUnixSupport” switch is turned on for the purpose. For complete reference, please see and follow the instructions mentioned in the thread to fix the issue.

As suggested Yes, I have installed libgdiplus Package on my Linux Box but still do not work. Where do I need to set “EnableUnixSupport” . I have gone thru the thread mentioned above.

@poonammishra,

You can enable support for non-Windows platforms in .NET 6 by setting the System.Drawing.EnableUnixSupport runtime configuration switch to true in the runtimeconfig.json file. See the document for your reference.

Done the changes above mentioned in runtimeconfig and also installed libgdiplus on my Linux Box .Thanks for your help I was able to successfully Convert ToPDF from xls and xlsx file.

@poonammishra,

Good to know that you have sorted out your issue by setting the configurations (as suggested). Feel free to write back if you have further questions or comments.