pruiz / WkHtmlToXSharp

C# wrapper wrapper (using P/Invoke) for the excelent Html to PDF conversion library wkhtmltopdf library.
239 stars 84 forks source link

Question regarding usage of MultiplexingConverter #45

Closed JulianMay closed 6 years ago

JulianMay commented 6 years ago

Hi! We're trying to replace existing (buggy) WkHtml-integration with WkHtmlToXSharp. We're using it to generate reports of many different kinds, each report-generation running in a seperate thread with a prioritized queue in front.

I'm a bit confused, by the following (probably misunderstood) things, that maybe you can clear up:

Any input is appreciated - thanks!

pruiz commented 6 years ago

Hi,

Well MultiplexingConverter is not supposed to be thread-safe (ie. used [concurrently] by one or more threads) by itself, however, you can use as many 'MultiplexingConverter' instances as you want/need from each thread. And those instances (internally) will take care of multiplexing access to the shared wkhtmltox native engine under the hood.

Maybe the naming was a bit confusing on my part.. :?

JulianMay commented 6 years ago

Ok, thanks for clarifying 👍