Aspose.Pdf crashes in Docker with NullReferenceException

Hi guys,

We have the same callstack as here:

Is there a solution for this? We use Docker for Windows. No explicit fonts are used/set. Outside Docker this problem does not occur.

Thank you very much in advance and regards,
Klaus

@KlausH

We are afraid that the earlier logged ticket is not yet resolved. However, can you please try using 21.10 version of the API and make sure to install msttcorefonts and libgdiplus packages as well? In case issue still persists, please let us know.

@asad.ali

Thank you for pointing this out. It is because of the fonts. We have copied the fonts manually. Then it works with version 21.9. We use Docker for Windows. I didn’t find a single reference in my Google search on how to install the package msttcorefonts here, only for Docker for Linux. Do you know?

@KlausH

We are afraid that we did not also check it by installing the fonts packages in Docker for Windows. However, you have already done and achieved it by copying the Windows fonts which is another way to install fonts in Docker environment.