Skip to content

Instantly share code, notes, and snippets.

@brunogaspar
Last active October 7, 2022 09:08
Show Gist options
  • Save brunogaspar/bd89079245923c04be6b0f92af431c10 to your computer and use it in GitHub Desktop.
Save brunogaspar/bd89079245923c04be6b0f92af431c10 to your computer and use it in GitHub Desktop.
Install wkhtmltopdf on Ubuntu (14.04 64-bit) or (16.04 64-bit)

Install wkhtmltopdf on Ubuntu

This was tested on:

  • Ubuntu 14.04 x64
  • Ubuntu 16.04 x64

Installation

sudo apt-get update
sudo apt-get install xvfb libfontconfig wkhtmltopdf

Test

Now it's time to test that everything is working as expected

wkhtmltopdf http://www.google.com google.pdf

If you see Done, then everything is installed correctly and you're ready to generate some PDF's :D

@brunogaspar
Copy link
Author

apt-get command not found

Without giving us any information about your setup like what distro you're on, is quite impossible to know. But try using yum instead of apt for example.

what should I do Now

You should use Google and search for your problem, takes just a second..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment