Fonts Are Missing when Converting PPTX to PDF in C# on Linux via Docker

I have an application written in c# on windows using .NET Framework 4.7.2. The application contains the newest Aspose.Slides 24.2 Library.

To run it on Linux I am using mono and xsp4:

FROM mono:latest
RUN apt update && apt install --no-install-recommends --no-install-suggests -y \
  libfontconfig1 \
  libfreetype6 \
  mono-fastcgi-server4 \
  vim \
  mono-xsp4
RUN msbuild Application.sln -p:Configuration=Release /p:OutputPath=/app/www
CMD ["bash", "-c", "xsp4 --port=16523 -v --loglevels=All --nonstop"]

The code is running fine.
Save as PPTX works fine, but save as PDF does not have fonts.

What can I do to fix it?

@Tivian_XI,
Thank you for contacting support.

To investigate the case and help you, we need more details. Please share the following files and information:

  • sample presentation file
  • code example that reproduces the problem
  • output PDF file

Attached i the pptx Template and generated PDF File
simpleText.zip (16.2 KB)

Here is a example code:

Presentation presentation = new Presentation(inputPath, loadOptions);
presentation.Save(outputPath, Aspose.Slides.Export.SaveFormat.Pdf, pdfOptions);

@Tivian_XI,
Thank you for the additional information. I am working on the issue and will get back to you soon.

@Tivian_XI,
Unfortunately, I have not managed to reproduce the problem you described. Could you please share a standalone minimal project for this?