Skip to content

Waytal/IronPDFIssue

Repository files navigation

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.

About this Repo

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 ?

The big problem

When I call the api endpoint to render my file it works the first time, but fails the second and all other times.

Update

I encountered the same problem with the new version of IronPDF 2022.8.7894.

Implementation

Iron PDF usage

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");

Log files

I kept the log files of my test in the repo, feel free to check them.

Nuget packages

<PackageReference Include="IronPdf.Native.Chrome.MacOS" Version="2022.6.6072" />
<PackageReference Include="IronPdf" Version="2022.6.6115" />

Start the project

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages