Migrate from Windows to Linux server

Hello,

I am using Aspose Total Product family (Cell, Diagram, HTML, Imaging, PDF, Slides, Words) for .Net core 2.0 application (C#) and host on the windows server and now want to migrate our host applications to the Linux server. Aspose library support host on the Linux server? Do we need to make any changes for Aspose library or Aspose specific configurations on our Linux server?

Kindly advice.

@cyginfo

Thanks for contacting support.

All mentioned APIs include support for .NET Core 2.0 and should be run over Linux server without creating any issue. There was a reported issue in Linux (AWS) environment for Aspose.Slides where libdl was missing. The issue is currently under investigation however. Regarding Aspose.Cells, there might be some limitations about drawing shapes SDKs of .NET Core for Linux itself but, you can try your scenario in your environment and let us know in case you face any issue.

Concerning to Aspose.Words, Aspose.Imaging - these APIs support .NET Core for Linux. For Aspose.PDF, you need to install following in order to make sure that API processes PDF files and fonts correctly;

  1. libgdiplus package
  2. package with Microsoft compatible fonts: ttf-mscorefonts-installer. (e.g. sudo apt-get install ttf-mscorefonts-installer )

These fonts should be placed in “/usr/share/fonts/truetype/msttcorefonts” directory as Aspose.PDF for .NET scans this folder on Linux like operating systems. In case operating system has other default folder/directory for fonts, you should use following line of code before performing any operation using Aspose.PDF.

Aspose.Pdf.Text.FontRepository.Sources.Add( new FolderFontSource( "<user's path to ms fonts>" ));

In case you face any issue, please share your sample files along with complete sample code snippet. We will test the scenario in our environment and address it accordingly.