ABCPdf in linux container

1.2k Views Asked by At

I want to deploy a pdf generator that is dependent on ABCpdf (.net core) on a Linux container. the docker image file will build successfully but when we run the container I have the following exception

enter image description here

any idea how we can solve this issue?

2

There are 2 best solutions below

0
Peter G On BEST ANSWER

ABCpdf.NET has now been ported to Linux as of version 13 and is currently supported on Ubuntu 22.04 LTS.

As ABCpdf has Linux-native components there are some pre-requisite libraries that need to be available on the OS. There are some pre-prepared Docker images on Docker Hub and the Dockerfiles used to create these images are also available on GitHub for you to roll your own.

There is a sample containerized microservice API project here that may be used as a template.

4
Ross Presser On

The abcpdf documentation states:

There are variants of ABCpdf for both .NET Core and .NET Standard.

These variants are currently for Windows only and there are a few features which are disabled because they are not supported by the .NET Core runtime.

Therefore you could run it in a Windows container but not a Linux one.