I’m using Aspose Total license for converting office files to PDF and everything is running fine in windows. But when I deploy it into a linux container then files are not getting converted correctly (logos are missing from files). Also office 97-2003 versions are throwing error in linux. All doc,xls,ppt etc. are failing. Please help me with the packages that need to be installed in linux machine. Currently I’m using following in my docker file:
Could you please share the sample Office files along with the issue detail by providing images etc. for our analysis? We will try to reproduce the issue here and provide assistance accordingly. Please ensure that that you are using latest version of each Aspose product before sharing the information as we do not provide fixes for older versions.
We have tested the scenario in our environment using latest version of the API and found no issue. For your kind reference, output files are also attached. PDF files.zip (786.9 KB)
We have tried to test your scenario in Linux Container (Ubuntu 18.04.2 LTS) using following steps to avoid the issue that you were facing:
The docker we used was: microsoft/dotnet, install it first:
sudo docker pull microsoft/dotnet
Then we installed libgdiplus:
apt-get update
apt-get install -y libgdiplus
cd /usr/lib && ln -s libgdiplus.so gdiplus.dll
And installed libc6-dev:
apt-get install -y --no-install-recommends libc6-dev
As you have already stated that presentations rendered correctly. We have verified the same in the shared package too.
For this point, we have generated the MHTML using Aspose,Email and it has not missing logo. Would you kindly export to MHTML and convert it into PDF using Aspose.Words. In case you face any issue, please feel free to let us know.
Doc/Docx - “We have tested the scenario in our environment using latest version of the API and found no issue. For your kind reference, output files are also attached.” - Have you tested it in Linux environment? I’m using Ubuntu 16.04. Is it compatible with that?
xls - Will it run in Linux 16.04?
Email - I’m using latest version od Aspose.Email and Aspose.Word. Using following code:
Please note that Aspose.Words mimics the behavior of MS Word. You are facing this issue because the page width of MHTML (imported into Aspose.Words’ DOM) is greater than the default page width. To get the desired output, please increase the page’s width of document.
Please check the following code example. Hope this helps you.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.