Á

Álvaro Moura

Last updated on Jul 6, 2026

**1.**Check the current version of wkhtmltopdf

**1.1 -**Navigate to the directory:

  1. _lib/prod/third/wkhtmltopdf/linux-amd64/linux-amd64

**1.2 -**Then, run the following command to check the installed version:

  1. ./wkhtmltopdf-amd64 --version

Quote

The returned version will possibly be 12.04.

**2.**Download of the new version

Access the library's official website at the link below and download the version corresponding to your operating system:

wkhtmltopdf.org/downloads.html

**3.**Extract the downloaded file

After the download, extract the file using the following commands:"

  1. mkdir wkhtmltox_extraido sudo dpkg-deb -x wkhtmltox_0.12.6-1.xenial_amd64.deb wkhtmltox_extraido

**4.**Copy and replace the file

4.1 - Navigate to the newly created directory:

  1. wkhtmltox_extraido/usr/local/bin

**4.2 -**Copy the wkhtmltopdf file to the destination directory:

  1. _lib/prod/third/wkhtmltopdf/linux-amd64

5. Rename the files

Modify the filenames as needed:

Rename the wkhtmltopdf file to wkhtmltopdf-amd64.

Alert

The old file, named wkhtmltopdf-amd64, should be renamed to another name that doesn't cause a conflict.