Install GroupDocs.Conversion for .NET on Linux

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Conversion MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-conversion -- dnx GroupDocs.Conversion.Mcp --yes
Folders, licensing and more →

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.

Prerequisites

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

Installing Dependencies

Ubuntu / Debian

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.

CentOS / RHEL

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.

Alpine Linux

Install minimal dependencies using apk:

apk add --no-cache libgdiplus fontconfig ttf-dejavu

ttf-dejavu provides good font compatibility in Alpine.

Install GroupDocs.Conversion using .NET CLI

In your project directory:

dotnet add package GroupDocs.Conversion
dotnet restore

Run Your Project

Build and run your project:

dotnet run

Troubleshooting

  • If you encounter System.DllNotFoundException, check if libgdiplus is installed.
  • If fonts are missing or rendered incorrectly, verify fonts are present and accessible.

For Docker-specific environments, see: