Skip to content

Instantly share code, notes, and snippets.

@faniska
Last active September 12, 2025 06:43
Show Gist options
  • Select an option

  • Save faniska/37f896d5e9de5fee925925d7caf3cb9e to your computer and use it in GitHub Desktop.

Select an option

Save faniska/37f896d5e9de5fee925925d7caf3cb9e to your computer and use it in GitHub Desktop.

Revisions

  1. faniska revised this gist Nov 15, 2017. No changes.
  2. faniska created this gist Nov 15, 2017.
    8 changes: 8 additions & 0 deletions wkhtmltopdf.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # Uncomment the next line if you have installed wkhtmltopdf
    # sudo apt remove wkhtmltopdf
    cd ~
    # Select an appropriate link for your system (32 or 64 bit) from the page https://wkhtmltopdf.org/downloads.html and past to the next line
    wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    tar xvf wkhtmltox*.tar.xz
    sudo mv wkhtmltox/bin/wkhtmlto* /usr/bin
    sudo apt-get install -y openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig