we want to use the Aspose.pdf in a azure function app container but it seems that Aspose.pdf is using system.Drawing components and it is not possible to add the libgdiplus into the function app host.
Do you have any idea how we can use the aspose.pdf in a function host / azure function container ?
hmm. we are converting html to pdf. But Aspose.pdf needs libgdiplus in the docker image. We cannot install libgdiplus in an Azure Function host. see here your own link where you refer on libgdiplus How to run Aspose.PDF in Docker|Aspose.PDF for .NET
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
RUN apt-get update && apt-get install -y libgdiplus
How is it possible to use Aspose.pdf without libgdiplus ? - because libgdiplus cannot be installed in azure functions.
We currently use the HTML->PDF conversion (Converter.ConvertHTML(...)), and no direct call to any image library. While the lib Aspose.Drawing is referenced, it’s never called because none of our code is using it directly.
The HTML converter complains that the library libgidplus is required, and if it’s present it fails loading when the function runs in a function host. All code we talk about is running in Linux containers.
Yep, I saw Aspose.Drawing and was wondering how to use. Looks like Aspose.Pdf.Drawing is indeed the answer. Thanks, I’m going to check some more scenarios right now.