@shun1985,
I have analyzed the issue more using ubuntu as follows:
-
Got latest ubuntu docker image here and got the image using the following command:
docker pull ubuntu
-
Once the image is downloaded, executed it alongwith mounting my project folder
docker run -it -v /Users/testuser/projects/:/projects ubuntu_dotnetcore:ver1 bash
-
Following commands are executed in the container
-
apt update && apt upgrade
-
apt install wget
-
apt-get install sudo
-
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
-
sudo dpkg -i packages-microsoft-prod.deb
-
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-3.1 -
sudo apt-get install libgdiplus
-
ln -s libgdiplus.so gdiplus.dll
-
sudo apt-get install libc6-dev
- When the installation was completed, then executed the program as follows:
- dotnet run
This command created the PDF fine and no image is white. Here is the output file attached for your reference:
source_template.pdf (36.0 KB)