asciidoctor-vscode icon indicating copy to clipboard operation
asciidoctor-vscode copied to clipboard

Export to PDF does not work on M1 Macs

Open philwinder opened this issue 3 years ago • 1 comments

Hi there, This issue is exactly the same as #79, but now for M1 macs. The error message is:

Error downloading https://github.com/joaompinto/wkhtmltopdf/releases/download/v0.0.1/wkhtmltopdf-darwin-arm64.gz   Error: http error404

Specifically, we need an arm64 binary.

Thanks, Phil

philwinder avatar Aug 08 '22 09:08 philwinder

You should install it manually using Rosetta mode:

It's working for me. Installed via Homebrew on the terminal in Rosetta mode. 1 - Run the terminal in Rosetta mode. 2 - brew install wkhtmltopdf

According to https://github.com/wkhtmltopdf/packaging/issues/98#issuecomment-904414634

(...) I think it'll hard to port Qt4 to it, unless the arm64 support works as-is. So Rosetta seems to be the only option for the foreseeable future.

ggrossetie avatar Aug 08 '22 09:08 ggrossetie