fpanaccia / Wkhtmltopdf.NetCore.Example-deprecated

Implementation of Wkhtmltopdf.NetCore
81 stars 33 forks source link

Problem on MacOS #12

Open marmited opened 4 years ago

marmited commented 4 years ago

I try to run wkhtmltopdf on macOS 10.15.5 and my error is:

An exception of type 'System.ComponentModel.Win32Exception' occurred in Wkhtmltopdf.NetCore.dll but was not handled in user code: 'Bad CPU type in executable'

I don't know what can be wrong.

micahosborne commented 4 years ago

For anyone trying to fix this. I downloaded the latest version of Wkhtml on my mac. Then i run "type wkhtmltopdf" to get the path to the executable. I then copied this to the Mac folder and replaced it. Also make sure you run chmod 755 on it

Shaun-Sheppard commented 4 years ago

I can confirm that the suggestion above fixed the same issue for me.

AlexTeixeira commented 3 years ago

Hi,

I got the error despite the fact that I download the last wkhtmltopdf and I run chmod 755 in my project...

Version of macOS : 11.2.3