Install GroupDocs.Conversion for .NET on Linux
Leave feedback
On this page
This article explains how to install and run GroupDocs.Conversion for .NET on a Linux-based system using .NET 6+. It also includes instructions for installing native dependencies that might be required when running in a headless environment.
Ensure the following tools and packages are installed:
- .NET 6.0 SDK or later: Install .NET on Linux
- A Linux distribution such as Ubuntu, Debian, CentOS/RHEL, or Alpine
libgdiplus
,fontconfig
, and TrueType fonts
Ensure the multiverse repository is enabled:
sudo add-apt-repository multiverse
sudo apt update
Install the required packages:
sudo apt install -y libgdiplus fontconfig ttf-mscorefonts-installer
ttf-mscorefonts-installer
is in the multiverse repository and downloads Microsoft fonts.
Enable EPEL repository and install required packages:
sudo yum install -y epel-release
sudo yum install -y libgdiplus fontconfig cabextract
To install Microsoft TrueType fonts:
wget https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
sudo yum install -y msttcore-fonts-installer-2.6-1.noarch.rpm
Note: This method uses a third-party RPM for Microsoft fonts. You may need
--nogpgcheck
depending on your system configuration.
Install minimal dependencies using apk
:
apk add --no-cache libgdiplus fontconfig ttf-dejavu
ttf-dejavu
provides good font compatibility in Alpine.
In your project directory:
dotnet add package GroupDocs.Conversion
dotnet restore
Build and run your project:
dotnet run
- If you encounter
System.DllNotFoundException
, check iflibgdiplus
is installed. - If fonts are missing or rendered incorrectly, verify fonts are present and accessible.
For Docker-specific environments, see:
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.