I am developing a C# application and it involves converting an xlsx file to pdf in a containerized environment in Linux. When i do that using Workbook.Save(filePath, SaveFormat.Pdf), it returns Internal Server Error 500. I read another topic and it involves the usage of library libgdiplus. But i don’t have permissions to install any package. Is there a way to do it without installing a library?
Hi, I tried to install the libgdiplus using docker file, but still not able to successfully convert xlsx to pdf. I’ve attached the logs. Could you please check what’s wrong? Also, i’m using cloud foundry.
Following is the docker file script to install libgdiplus:
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base
@gurdeepsingh1409,
You may please go through the following article for more information on running Aspose.Cells in Docker and share your feedback. If the issue is not resolved, share a runnable simplified solution for our reference.
Thanks for providing the help. I tried these things and it didn’t quite work out. I tried and installed the package libc6-dev (and libgdiplus which already exists in the dotnet core buildpack of cloud foundry).
Following is the debian package i tried to install: http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.27-3ubuntu1.4_amd64.deb http://ftp.us.debian.org/debian/pool/main/g/glibc/libc6-dev_2.32-4_amd64.deb
Apart from this, i specifically tried and install the libgdiplus package as well from the URL: http://ftp.us.debian.org/debian/pool/main/libg/libgdiplus/libgdiplus_6.0.4+dfsg-2_amd64.deb
But I’m still getting the same exception as i mentioned in the previous reply. Is there an alternate package that i can make use of, or any other alternate way?
@gurdeepsingh1409,
We need to investigate this issue in detail and have logged a ticket into our issues management database. You will be notified here once any update is ready for sharing.
This issue is logged as: CELLSNETCORE-281 - Aspose.Cells convert xlsx to PDF in docker without libgdiplus
HI @gurdeepsingh1409
Based on the Docker image you choose, I’ve created the following Dockerfile, which has been tested and is available, try this: Dockerfile.zip (529 Bytes)
Hi @gurdeepsingh1409
We need to verify your develope environment, we may not have done a similar configuration on cloud foundry before.
Is this your development environment?
HI @gurdeepsingh1409
I’m sorry, I did a little research on the platform and didn’t find the right sign up option, like this: Cloud Foundry Members - Open Source Cloud Platform | Cloud Foundry
this is not the sign up page I was looking for. Also, finding some developer training and certification pages doesn’t seem to be the right direction. (I don’t think I’ll be a certified Cloud Foundry developer in a short time
So it’s hard for me to simulate your environment right now. Do you have any suggestions for me to partially understand and simulate your environment? Thank you.