Integrating IronPDF with Unity: Invalid IL code
Has anybody tried integrating the IronPDF framework with Unity? I have discovered that any version after IronPDF v2020.3 doesn't work with Unity. I've copied the latest version of IronPDF dlls into Unity and simply run a simple line of code:
IronPdf.HtmlToPdf Renderer = new IronPdf.HtmlToPdf();
This throws the following error:
InvalidProgramException: Invalid IL code in IronPdf.HtmlToPdf:.ctor (): IL_0002: pop
I'm targetting .NET 4.x and using the appropriate DLLs. Any idea if there're any options in Unity that I can change to fix this problem?
Comment