Azure functions apparently doesn't yet support System.Drawing
(sanbox info). Running a function with a dependency on it throws the following message:
System.Drawing is not supported on this platform.
I was originally using Select.HtmlToPdf in a WebApp to create PDF documents from HTML. But, since moving the PDF generation to an Azure function, that is no longer an option.
Also, the reccomended library is wkhtmltopdf
, but that doesn't seem to have a .netstandard2.0
version.
How would you accomplish PDF generation using Azure Functions (C#)?
Update: the function is running on an S1 - App Service Plan.
Update2: using the method shown on OdeToCode gives the error Qt: Could not initialize OLE (error 80010106)