selectpdf / selectpdf-free-html-to-pdf-converter

Free Html To Pdf Converter for .NET. Asp.Net, C# sample.
13 stars 2 forks source link

Unable to load shared library 'kernel32.dll' on Linux #2

Closed StefanoP73 closed 6 years ago

StefanoP73 commented 6 years ago

We use asp.net core with Select.HtmlToPdf.NetCore and tested a simple code to convert a url in pdf. In windows all works fine, but in linux we recieved the error: Conversion failure. Unable to load shared library 'kernel32.dll' or one of its dependencies at SelectPdf.HtmlToImage

I thought that the .NETStandard reference makes the code's platform independent. Are you using some internal reference to windows dll?

selectpdf commented 6 years ago

Hi,

Sorry, our tool only works on Windows.

Regards, SelectPdf Support http://selectpdf.com

On Jul 31, 2018, at 5:51 PM, StefanoP73 notifications@github.com wrote:

We use asp.net core with Select.HtmlToPdf.NetCore and tested a simple code to convert a url in pdf. In windows all works fine, but in linux we recieved the error: Conversion failure. Unable to load shared library 'kernel32.dll' or one of its dependencies at SelectPdf.HtmlToImage

I thought that the .NETStandard reference makes the code's platform independent. Are you using some internal reference to windows dll?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

davidparker commented 5 years ago

then dont do a multi platform version on dotnet core then

ghost commented 5 years ago

Why even bother to create a netcore version if it only works on Windows :D

Denny966 commented 4 years ago

this is fine

selectpdf commented 4 years ago

Hi,

I am afraid that our library currently work on Windows only.

Regards,

SelectPdf Support

https://selectpdf.com https://selectpdf.com

From: Denny notifications@github.com Sent: Wednesday, April 15, 2020 3:10 PM To: selectpdf/selectpdf-free-html-to-pdf-converter selectpdf-free-html-to-pdf-converter@noreply.github.com Cc: SelectPdf office@selectpdf.com; State change state_change@noreply.github.com Subject: Re: [selectpdf/selectpdf-free-html-to-pdf-converter] Unable to load shared library 'kernel32.dll' on Linux (#2)

https://user-images.githubusercontent.com/12098006/79335684-b75a8580-7f22-11ea-87b6-ecd33f5b51e7.gif

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/selectpdf/selectpdf-free-html-to-pdf-converter/issues/2#issuecomment-613998855 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUTWYKEH2FWY5LN7YSVY3LRMWPZBANCNFSM4FNCD34Q . https://github.com/notifications/beacon/ACUTWYJDQZVA3S7EPAVZAOTRMWPZBA5CNFSM4FNCD342YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOESMOCBY.gif

GeradeDev commented 4 years ago

@selectpdf Why do you still have up on your website: https://ironpdf.com/docs/questions/docker-linux/

Remove it if it's not the case.

selectpdf commented 4 years ago

Hi,

That is not our website.

Regards, SelectPdf Support http://selectpdf.com

On 18 May 2020, at 18:12, Gerade Geldenhuys notifications@github.com wrote:

 @selectpdf Why do you still have up on your website: https://ironpdf.com/docs/questions/docker-linux/

Remove it if it's not the case.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

nellstephanj commented 3 years ago

Any plans on adding support for Linux?

ognjenkurtic commented 3 years ago

image

Could you please do yourself a favor and add a big warning somewhere here stating that this is a net core library which is actually not cross-platform?

selectpdf commented 3 years ago

https://selectpdf.com/html-to-pdf/docs/html/Index.htm

Note: SelectPdf currently works only on Windows systems. There is no support for Linux, Xamarin or other platforms.

ognjenkurtic commented 3 years ago

I dont think you got my point. People are still managing to miss that (as evident by this open issue) because everyone defaults to cross-platform as soon as Net Core is mentioned. We had two people on the team missing that information.

sanderj6 commented 3 years ago

Have you found any alternatives that work on all platforms, @ognjenkurtic ?

ognjenkurtic commented 3 years ago

Have you found any alternatives that work on all platforms, @ognjenkurtic ?

We explored this one - https://github.com/HakanL/WkHtmlToPdf-DotNet. We get correct PDF outputs, should be cross-platform but there is an open issue for Linux support: https://github.com/HakanL/WkHtmlToPdf-DotNet/issues/28. We are temporarily working with ITextSharp.

ntimmerman commented 3 years ago

To any vendor listening, when you run apps on Azure, the savings by switching from Windows App Services to Linux is substantial enough to justify buying licenses for 3rd party components.

Qasim-Aziz commented 3 years ago

i am devops and struggling from 1 week over this issue then i found this link . i was running dotnet app in container every thing seems working apart form selectpdf.

Vnuuk commented 2 years ago

Ugh.. Ugh... So I spent ~1 day trying to get it working. Now I see this :(

josephadah commented 2 years ago

This is so annoying and frustrating seeing this after several hours of debugging....

How will you create a dotnetcore package which is not cross platform. Why do we have netcore in the first place. Everybody is going the containerization route and will definitely use Linux.

You guys never care to put a warning on your site like: WARNING: SELECTPDF DOES NOT WORK ON LINUX.

Ali-ite commented 2 years ago

I have same issue I try with ironpdf I have same problem

BC89 commented 10 months ago

SelectPDF do you plan on supporting Linux?