PSWritePDF icon indicating copy to clipboard operation
PSWritePDF copied to clipboard

Issue when deploying to Azure Function

Open CDSFounder opened this issue 2 years ago • 10 comments

Hello,

I am new to using this module. It works great in scripts on my local machine with Powershell Core 7.2, but it does not work when deployed to an Azure Function with the same Ppowershell Core 7.2. I am getting the following error:

"[Warning] WARNING: Get-PDF - Processing document C:\local\Temp\tmp72B6.pdf failed with error: Exception calling ".ctor" with "1" argument(s): "The type initializer for 'iText.Commons.Actions.EventManager' threw an exception."

I am not sure how to further debug this since it works great on my local machine, but not when deploying the same code to Azure function.

Can anyone shine some light on what is going on?

CDSFounder avatar Nov 30 '22 18:11 CDSFounder