-
Notifications
You must be signed in to change notification settings - Fork 0
Getting PDFs to work on different versions of Ubuntu
Always check errors logs to make sure you're fixing the thing you think you're fixing.
apt list | grep <package>
is useful to find if a package is already installed
Below are the steps that have been successful in getting PDFs to work on different versions of Ubuntu. It's usually not a good idea to start installing random packages so you should dig a bit yourself to make sure that the solutions below will fix your specific issue (that you already looked for because you check the logs right)
apt-get install --no-upgrade libxrender1
apt-get install --no-upgrade libssl1.0-dev
sudo apt-get install libjpeg62
- You have to point the bin in the projects environment to
WKHTML_PDF_BINARY=wkhtmltopdf
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.focal_amd64.deb
sudo dpkg -i wkhtmltox_0.12.5-1.focal_amd64.deb
You'll get an error about dependencies so to resolve those run:
sudo apt-get install -f
Once the dependencies are installed run the install command again
sudo dpkg -i wkhtmltox_0.12.5-1.focal_amd64.deb