We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Custom Font Error in Docker Container

Hi, I was trying to use custom font(ttf format) , which placed in my project folder. Reading Font using OpenFont API. Its working perfect in windows but not in Docker Debian. I have installed gdi package too. Please help me to resolve this issue.

PFB Error

System.NullReferenceException: Object reference not set to an instance of an object.
at Aspose.Pdf.Text.Font…ctor(#=zsl9AI3vKIl8iubYU_JGl6iM= #=z2OVK3xg=)


Can you please explain a bit more about the scenario and the issue your are facing? Please share:

  • Complete code snippet that you use to set font
  • Docker environment details (docker file)
  • Sample PDF (if any)
  • Complete error and stack trace information