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
378 stars 67 forks source link

You can only download the pdf once #119

Closed AlexCorsega closed 12 months ago

AlexCorsega commented 12 months ago

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

HakanL commented 12 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 12 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!