HakanL / WkHtmlToPdf-DotNet

C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.
GNU Lesser General Public License v3.0
366 stars 66 forks source link

You can only download the pdf once #119

Closed AlexCorsega closed 9 months ago

AlexCorsega commented 9 months ago

It is okay for the first download but the next succeeding downloads will be string representation of that HTML.

HakanL commented 9 months ago

This project doesn't provide any downloads, it generates stream content that you can return in a web request for example. But if you try to re-use the component then you must use the SynchronizedConverter in a singleton, see the examples/issues here.

AlexCorsega commented 9 months ago

It's working good now, I just need to make the SynchronizedConverter class to be singleton so that it will work as expected. Thank you!