Work with PDF Files in .NET Core with Linux and IronPDF
IronPDF now fully supports Linux for .NET Standard Libraries and Core applications. IronPDF fully supports, and is tested on, x64 builds, Ubuntu 12+, Debian 8+, and CentOS.
No code changes are required to support Linux. We do have to ensure that the instance has the relevant packages installed to support PDF rendering.
Linux Automatic Setup
The default setting LinuxAndDockerDependenciesAutoConfig
true will automatically attempt to install all dependencies for IronPDF to run on Linux. The first html-to-pdf operation may be longer than usual packages that are installed.
IronPdf.Installation.LinuxAndDockerDependenciesAutoConfig = true;
IronPdf.Installation.LinuxAndDockerDependenciesAutoConfig = true;
IronPdf.Installation.LinuxAndDockerDependenciesAutoConfig = True
This works on Debian and Ubuntu.
Linux Manual Setup
We can also manually install the IronPDF prerequisites for Linux using apt-get or yum
Debian and Ubuntu
apt-get update
apt-get install -y libgdiplus xvfb libfontconfig wkhtmltopdf libc6-dev openssl libssl1.0-dev
CentOS Equivalent
yum -y install libgdiplus xvfb libfontconfig wkhtmltopdf libc6-dev openssl libssl1.0-dev