Skip to content

Instantly share code, notes, and snippets.

@jaumef
Last active April 13, 2020 14:28
Show Gist options
  • Save jaumef/9eb558ac976b2a80269cc51ca8c97087 to your computer and use it in GitHub Desktop.
Save jaumef/9eb558ac976b2a80269cc51ca8c97087 to your computer and use it in GitHub Desktop.
Webkit Header HTML to PDF binaries for linux on version 0.12.2.1

Install wkhtmltopdf v0.12.2.1 (with patched qt) without building from source.

Run the script on this gist:

/bin/bash Ainstall_wkhtmltopdf.sh

Install:

# Get files from this gist (wkhtmltoimage is optional)
wget https://gist.github.com/jaumef/9eb558ac976b2a80269cc51ca8c97087/raw/8d5ceafea1dd387a83eb7eaa699354819b6910d7/wkhtmltopdf
# Move/copy the files to local binaries (/usr/local/bin)
sudo cp wkhtmltopdf /usr/local/bin/
# Get files from this gist (wkhtmltoimage is optional)
wget https://gist.github.com/jaumef/9eb558ac976b2a80269cc51ca8c97087/raw/8d5ceafea1dd387a83eb7eaa699354819b6910d7/wkhtmltopdf
# Set permissions
chmod +x wkhtmltopdf
# Move/copy the files to local binaries (/usr/local/bin)
sudo mv wkhtmltopdf /usr/local/bin/
This file has been truncated, but you can view the full file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment