pruiz / WkHtmlToXSharp

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

ApartmentState.STA in .net core linux #50

Closed ragnarek81997 closed 5 years ago

ragnarek81997 commented 5 years ago

in this line throw PlatformNotSupportedException (.net core, linux x64) https://github.com/pruiz/WkHtmlToXSharp/blob/390ed1024a23cb6099ce27454139edfb1e45ea1e/WkHtmlToXSharp/DelegateQueue/DelegateQueue.cs#L138 please change to this line: delegateThread.TrySetApartmentState(ApartmentState.STA);

pruiz commented 5 years ago

We do accept pull requests.. ;)

On Tue, Sep 25, 2018 at 4:31 PM ragnarek81997 notifications@github.com wrote:

in this line throw PlatformNotSupportedException (.net core, linux x64)

https://github.com/pruiz/WkHtmlToXSharp/blob/390ed1024a23cb6099ce27454139edfb1e45ea1e/WkHtmlToXSharp/DelegateQueue/DelegateQueue.cs#L138 please change to this line: delegateThread.TrySetApartmentState(ApartmentState.STA);

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pruiz/WkHtmlToXSharp/issues/50, or mute the thread https://github.com/notifications/unsubscribe-auth/AALq-Q_0SU-bc_cSSlm1pD4z9orlHKMAks5uej5IgaJpZM4W4wze .

ragnarek81997 commented 5 years ago

thanks

ragnarek81997 commented 5 years ago

After updating get a exception, the library wkhtmltopdf was not found (1.2.32), although the local change of the wrapper is working (1.2.31)

ragnarek81997 commented 5 years ago

sorry, it's working)