Hi Gurdeep,
Your project is missing the System.Drawing.Common package.
Also, your Dockerfile is missing the libgdiplus package installation which is required by System.Drawing.Common.
Just as an FYI, note that we do plan to remove this dependency soon.
Also, your project is targeting aspnet:3.1-buster-slim which doesn’t have any fonts installed. Because of that, your Dockerfile will need to install some font package in order to generate a PDF file.
Does Cloud foundry already have some font files installed?
If yes, then you won’t have to install some font package.
Anyway, please take a look at our Docker example.
Let me know if you need anything else.
Regards,
Mario