Azure function - Python Aspose.PDF - missing libgdiplus in azure function

i am running Aspose.PDF with Python .Net Aspose but get this error like this person here:
https://forum.aspose.com/t/function-app-and-aspose-pdf/262766

Blockquote 3. “error”: “Proxy error(TypeInitializationException): The type initializer for ‘Gdip’ threw an exception. —> DllNotFoundException: Unable to load shared library ‘libgdiplus’ or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibgdiplus: cannot open shared object file: No such file or directory 4. }”

its recommended to use aspose.pdf.drawing but i dont understand how this would work in Python.

How do i use my python script in azure function using Aspose.PDF conversion from PDF to DOCX.

@JackMERW

Can you please provide more details about the specific error you are encountering when using Aspose.PDF in your Azure function with Python? Additionally, please clarify what you mean by ‘using aspose.pdf.drawing’ in your context.

The error when using aspose is:
“error”: “Proxy error(TypeInitializationException): The type initializer for ‘Gdip’ threw an exception. —> DllNotFoundException: Unable to load shared library ‘libgdiplus’ or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibgdiplus: cannot open shared object file: No such file or directory”}

The recommendation to use aspose.pdf.drawing is here: Function app and Aspose.pdf

@JackMERW

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFPYTHON-309

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.