Skip to content

Instantly share code, notes, and snippets.

  • Save mouyong/782bfc943000067c8940e900793efc2b to your computer and use it in GitHub Desktop.
Save mouyong/782bfc943000067c8940e900793efc2b to your computer and use it in GitHub Desktop.

Revisions

  1. Steve revised this gist Oct 28, 2018. 1 changed file with 4 additions and 4 deletions.
    Original file line number Diff line number Diff line change
    @@ -4,10 +4,10 @@ Change the wget url to download newer versions.
    | Install instructions |
    |---|
    |[wkhtmltopdf 0.12.4 - Ubuntu 16.04 x64](#wkhtmltopdf-0124---ubuntu-1604-x64)|
    |[wkhtmltopdf 0.12.5 - Ubuntu 16.04 x64](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#wkhtmltopdf-0125----ubuntu-1604-x64)|
    |[wkhtmltopdf 0.12.5 - Ubuntu 18.04 x64](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#wkhtmltopdf-0125---ubuntu-1804-x64)|
    |[wkhtmltopdf 0.12.5 - MacOS High Sierra 10.13.6 & Mojave 10.14](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#wkhtmltopdf-0125---macos-high-sierra-10136--mojave-1014)|
    |[Install verification](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#verify-that-it-is-working)|
    |[wkhtmltopdf 0.12.5 - Ubuntu 16.04 x64](#wkhtmltopdf-0125----ubuntu-1604-x64)|
    |[wkhtmltopdf 0.12.5 - Ubuntu 18.04 x64](#wkhtmltopdf-0125---ubuntu-1804-x64)|
    |[wkhtmltopdf 0.12.5 - MacOS High Sierra 10.13.6 & Mojave 10.14](#wkhtmltopdf-0125---macos-high-sierra-10136--mojave-1014)|
    |[Install verification](#verify-that-it-is-working)|


    ## wkhtmltopdf 0.12.4 - Ubuntu 16.04 x64
  2. Steve revised this gist Oct 28, 2018. 1 changed file with 9 additions and 0 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,15 @@
    You can check [here](https://github.com/wkhtmltopdf/wkhtmltopdf/releases/) for getting the latest version.
    Change the wget url to download newer versions.

    | Install instructions |
    |---|
    |[wkhtmltopdf 0.12.4 - Ubuntu 16.04 x64](#wkhtmltopdf-0124---ubuntu-1604-x64)|
    |[wkhtmltopdf 0.12.5 - Ubuntu 16.04 x64](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#wkhtmltopdf-0125----ubuntu-1604-x64)|
    |[wkhtmltopdf 0.12.5 - Ubuntu 18.04 x64](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#wkhtmltopdf-0125---ubuntu-1804-x64)|
    |[wkhtmltopdf 0.12.5 - MacOS High Sierra 10.13.6 & Mojave 10.14](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#wkhtmltopdf-0125---macos-high-sierra-10136--mojave-1014)|
    |[Install verification](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#verify-that-it-is-working)|


    ## wkhtmltopdf 0.12.4 - Ubuntu 16.04 x64

    ### Prerequisites
  3. Steve revised this gist Oct 4, 2018. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -47,7 +47,7 @@ sudo dpkg -i wkhtmltox_0.12.5-1.xenial_amd64.deb && \
    sudo apt-get -f install
    ```

    ## wkhtmltopdf 0.12.5 - MacOS High Sierra 10.13.6
    ## wkhtmltopdf 0.12.5 - MacOS High Sierra 10.13.6 / Mojave 10.14

    ### Prerequisites

  4. Steve revised this gist Sep 4, 2018. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ Change the wget url to download newer versions.

    - libxrender1

    Credits to @danielghitoiu
    Credits to [danielghitoiu](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#gistcomment-2594195)
    ```
    $ sudo apt-get install libxrender1
    ```
  5. Steve revised this gist Sep 4, 2018. 1 changed file with 9 additions and 0 deletions.
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,15 @@ Change the wget url to download newer versions.

    ## wkhtmltopdf 0.12.4 - Ubuntu 16.04 x64

    ### Prerequisites

    - libxrender1

    Credits to @danielghitoiu
    ```
    $ sudo apt-get install libxrender1
    ```

    ```shell
    $ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    $ tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
  6. Steve revised this gist Aug 18, 2018. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -45,7 +45,7 @@ sudo apt-get -f install
    - [brew](brew.sh)

    ```shell
    $ brew cask install wkhtmltopdf
    $ brew update && brew cask install wkhtmltopdf
    ```
    ----------------------------------------------------------------------------------------------------------------------------
    ## Verify that it is working
  7. Steve revised this gist Aug 17, 2018. 1 changed file with 5 additions and 0 deletions.
    Original file line number Diff line number Diff line change
    @@ -52,7 +52,12 @@ $ brew cask install wkhtmltopdf

    ```shell
    $ wkhtmltopdf https://google.com google.pdf

    //Linux
    $ xdg-open google.pdf

    //MacOS
    $ open google.pdf
    ```

    #### Output
  8. Steve revised this gist Aug 17, 2018. 1 changed file with 2 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -47,8 +47,8 @@ sudo apt-get -f install
    ```shell
    $ brew cask install wkhtmltopdf
    ```

    ### Verify that it is working
    ----------------------------------------------------------------------------------------------------------------------------
    ## Verify that it is working

    ```shell
    $ wkhtmltopdf https://google.com google.pdf
  9. Steve revised this gist Aug 17, 2018. 1 changed file with 2 additions and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -51,7 +51,8 @@ $ brew cask install wkhtmltopdf
    ### Verify that it is working

    ```shell
    $ wkhtmltopdf https://google.com google.pdf && xdg-open google.pdf
    $ wkhtmltopdf https://google.com google.pdf
    $ xdg-open google.pdf
    ```

    #### Output
  10. Steve revised this gist Aug 17, 2018. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -51,7 +51,7 @@ $ brew cask install wkhtmltopdf
    ### Verify that it is working

    ```shell
    $ wkhtmltopdf https://google.com google.pdf && open google.pdf
    $ wkhtmltopdf https://google.com google.pdf && xdg-open google.pdf
    ```

    #### Output
  11. Steve revised this gist Aug 16, 2018. 1 changed file with 2 additions and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,8 @@ sudo apt-get -f install

    ```shell
    $ brew cask install wkhtmltopdf
    ``
    ```

    ### Verify that it is working

    ```shell
  12. Steve renamed this gist Aug 16, 2018. 1 changed file with 0 additions and 0 deletions.
  13. Steve revised this gist Aug 16, 2018. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -38,7 +38,7 @@ sudo dpkg -i wkhtmltox_0.12.5-1.xenial_amd64.deb && \
    sudo apt-get -f install
    ```

    ## wkhtmltopdf 0.12.5 - MacOS High Sierra
    ## wkhtmltopdf 0.12.5 - MacOS High Sierra 10.13.6

    ### Prerequisites

  14. Steve revised this gist Aug 16, 2018. 1 changed file with 11 additions and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -37,10 +37,20 @@ wget "https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.xenial_am
    sudo dpkg -i wkhtmltox_0.12.5-1.xenial_amd64.deb && \
    sudo apt-get -f install
    ```

    ## wkhtmltopdf 0.12.5 - MacOS High Sierra

    ### Prerequisites

    - [brew](brew.sh)

    ```shell
    $ brew cask install wkhtmltopdf
    ``
    ### Verify that it is working

    ```shell
    $ wkhtmltopdf https://google.com google.pdf
    $ wkhtmltopdf https://google.com google.pdf && open google.pdf
    ```

    #### Output
  15. Steve revised this gist Aug 9, 2018. 1 changed file with 17 additions and 0 deletions.
    Original file line number Diff line number Diff line change
    @@ -37,3 +37,20 @@ wget "https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.xenial_am
    sudo dpkg -i wkhtmltox_0.12.5-1.xenial_amd64.deb && \
    sudo apt-get -f install
    ```
    ### Verify that it is working

    ```shell
    $ wkhtmltopdf https://google.com google.pdf
    ```

    #### Output

    ```shell
    Loading pages (1/6)
    Counting pages (2/6)
    Resolving links (4/6)
    Loading headers and footers (5/6)
    Printing pages (6/6)
    Done
    ```

  16. Steve revised this gist Aug 9, 2018. 1 changed file with 7 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -13,15 +13,20 @@ $ sudo chmod a+x /usr/bin/wkhtmltopdf
    $ sudo chmod a+x /usr/bin/wkhtmltoimage
    ```

    ## wkhtmltopdf 0.12.5 - Ubuntu 16.04 x64 [credits to @vmdao](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#gistcomment-2641131)
    ## wkhtmltopdf 0.12.5 - Ubuntu 16.04 x64

    [credits to @vmdao](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#gistcomment-2641131)

    ```shell
    $ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb
    $ sudo dpkg -i wkhtmltox_0.12.5-1.trusty_amd64.deb
    $ sudo apt -f install
    ```

    ## wkhtmltopdf 0.12.5 - Ubuntu 18.04 x64 - [credits to @J5Dev](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#gistcomment-2668984)
    ## wkhtmltopdf 0.12.5 - Ubuntu 18.04 x64

    [credits to @J5Dev](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#gistcomment-2668984)

    ```shell
    $ sudo apt-get install -y software-properties-common && \
    sudo apt-add-repository -y "deb http://security.ubuntu.com/ubuntu xenial-security main" && \
  17. Steve renamed this gist Aug 9, 2018. 1 changed file with 0 additions and 0 deletions.
  18. Steve renamed this gist Aug 9, 2018. 1 changed file with 0 additions and 0 deletions.
  19. Steve renamed this gist Aug 9, 2018. 1 changed file with 0 additions and 0 deletions.
  20. Steve revised this gist Aug 9, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Installing wkhtmltopdf 0.12.4 xor 0.12.5 - Ubuntu 16.04.md
    Original file line number Diff line number Diff line change
    @@ -13,15 +13,15 @@ $ sudo chmod a+x /usr/bin/wkhtmltopdf
    $ sudo chmod a+x /usr/bin/wkhtmltoimage
    ```

    ## wkhtmltopdf 0.12.5 - Ubuntu 16.04 x64 [credits to @vmdao](https://github.com/vmdao)
    ## wkhtmltopdf 0.12.5 - Ubuntu 16.04 x64 [credits to @vmdao](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#gistcomment-2641131)

    ```shell
    $ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb
    $ sudo dpkg -i wkhtmltox_0.12.5-1.trusty_amd64.deb
    $ sudo apt -f install
    ```

    ## wkhtmltopdf 0.12.5 - Ubuntu 18.04 x64 - [credits to @J5Dev](https://github.com/J5Dev)
    ## wkhtmltopdf 0.12.5 - Ubuntu 18.04 x64 - [credits to @J5Dev](https://gist.github.com/srmds/2507aa3bcdb464085413c650fe42e31d#gistcomment-2668984)
    ```shell
    $ sudo apt-get install -y software-properties-common && \
    sudo apt-add-repository -y "deb http://security.ubuntu.com/ubuntu xenial-security main" && \
  21. Steve revised this gist Aug 9, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Installing wkhtmltopdf 0.12.4 xor 0.12.5 - Ubuntu 16.04.md
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ $ sudo chmod a+x /usr/bin/wkhtmltopdf
    $ sudo chmod a+x /usr/bin/wkhtmltoimage
    ```

    ## wkhtmltopdf 0.12.5 - Ubuntu 16.04 x64
    ## wkhtmltopdf 0.12.5 - Ubuntu 16.04 x64 [credits to @vmdao](https://github.com/vmdao)

    ```shell
    $ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb
  22. Steve revised this gist Aug 9, 2018. 1 changed file with 17 additions and 3 deletions.
    20 changes: 17 additions & 3 deletions Installing wkhtmltopdf 0.12.4 xor 0.12.5 - Ubuntu 16.04.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,8 @@ You can check [here](https://github.com/wkhtmltopdf/wkhtmltopdf/releases/) for g
    Change the wget url to download newer versions.

    ## wkhtmltopdf 0.12.4 - Ubuntu 16.04 x64
    ```

    ```shell
    $ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    $ tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    $ cd wkhtmltox/bin/
    @@ -13,8 +14,21 @@ $ sudo chmod a+x /usr/bin/wkhtmltoimage
    ```

    ## wkhtmltopdf 0.12.5 - Ubuntu 16.04 x64
    ```

    ```shell
    $ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb
    $ sudo dpkg -i wkhtmltox_0.12.5-1.trusty_amd64.deb
    $ sudo apt -f install
    ```
    ```

    ## wkhtmltopdf 0.12.5 - Ubuntu 18.04 x64 - [credits to @J5Dev](https://github.com/J5Dev)
    ```shell
    $ sudo apt-get install -y software-properties-common && \
    sudo apt-add-repository -y "deb http://security.ubuntu.com/ubuntu xenial-security main" && \
    sudo apt-get -yq update && \
    sudo apt-get install -y libxrender1 libfontconfig1 libx11-dev libjpeg62 libxtst6 \
    fontconfig xfonts-75dpi xfonts-base libpng12-0 && \
    wget "https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.xenial_amd64.deb" && \
    sudo dpkg -i wkhtmltox_0.12.5-1.xenial_amd64.deb && \
    sudo apt-get -f install
    ```
  23. Steve revised this gist Aug 9, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Installing wkhtmltopdf 0.12.4 xor 0.12.5 - Ubuntu 16.04.md
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,5 @@ $ sudo chmod a+x /usr/bin/wkhtmltoimage
    ```
    $ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb
    $ sudo dpkg -i wkhtmltox_0.12.5-1.trusty_amd64.deb
    $ sudo apt -f install
    ```
  24. Steve renamed this gist Aug 9, 2018. 1 changed file with 7 additions and 0 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    You can check [here](https://github.com/wkhtmltopdf/wkhtmltopdf/releases/) for getting the latest version.
    Change the wget url to download newer versions.

    ## wkhtmltopdf 0.12.4 - Ubuntu 16.04 x64
    ```
    $ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    $ tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    @@ -9,4 +10,10 @@ $ sudo mv wkhtmltopdf /usr/bin/wkhtmltopdf
    $ sudo mv wkhtmltoimage /usr/bin/wkhtmltoimage
    $ sudo chmod a+x /usr/bin/wkhtmltopdf
    $ sudo chmod a+x /usr/bin/wkhtmltoimage
    ```

    ## wkhtmltopdf 0.12.5 - Ubuntu 16.04 x64
    ```
    $ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb
    $ sudo dpkg -i wkhtmltox_0.12.5-1.trusty_amd64.deb
    ```
  25. Steve renamed this gist Aug 3, 2017. 1 changed file with 0 additions and 0 deletions.
  26. Steve renamed this gist Aug 3, 2017. 1 changed file with 0 additions and 0 deletions.
  27. Steve created this gist Aug 3, 2017.
    12 changes: 12 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    You can check [here](https://github.com/wkhtmltopdf/wkhtmltopdf/releases/) for getting the latest version.
    Change the wget url to download newer versions.

    ```
    $ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    $ tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    $ cd wkhtmltox/bin/
    $ sudo mv wkhtmltopdf /usr/bin/wkhtmltopdf
    $ sudo mv wkhtmltoimage /usr/bin/wkhtmltoimage
    $ sudo chmod a+x /usr/bin/wkhtmltopdf
    $ sudo chmod a+x /usr/bin/wkhtmltoimage
    ```