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
any idea how we can solve this issue?
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
any idea how we can solve this issue?
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.
Copyright © 2021 Jogjafile Inc.

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.