Update : a workaround has been made by djrecipe
His patch allows iron pdf to be used on a MacOs environment.
It has been merged into the main branch. More info in the merge request.
I'm working on a backend server that integrates IronPDF.
I encountered a problem with the latest version of the nuget package, on my local machine. The computer is a MacBook Pro 2019 (intel chip) on macOS Monterey 12.4
You'll find in this repository a small project wich encountered the same problem as my main project.
It might be related to the new disposable PDFDocument class or to something I missed ?
When I call the api endpoint to render my file it works the first time, but fails the second and all other times.
I encountered the same problem with the new version of IronPDF 2022.8.7894.
IronPdf.Logging.Logger.EnableDebugging = true;
IronPdf.Installation.Initialize();using var pdfDocument = await renderer.RenderHtmlAsPdfAsync("<html><body><h1>Hello</h1>World</body></html>");
return File(pdfDocument.Stream, "application/pdf");I kept the log files of my test in the repo, feel free to check them.
<PackageReference Include="IronPdf.Native.Chrome.MacOS" Version="2022.6.6072" />
<PackageReference Include="IronPdf" Version="2022.6.6115" />You need to have installed DotNetCore 6 and VSCode.
Then on your local machine, open the project with VScode install the C# extension and you should be good to go.
Press F5 to start the project.
