Skip to content

Instantly share code, notes, and snippets.

@kai101
Created January 30, 2018 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kai101/7d85506890969d0a444d40a4fb8e7ef3 to your computer and use it in GitHub Desktop.
Save kai101/7d85506890969d0a444d40a4fb8e7ef3 to your computer and use it in GitHub Desktop.
How to install phantomjs 17.10

Using phantom js to render a html page into pdf/image.

sudo apt-get install phantomjs

fixing

QXcbConnection: Could not connect to display

run the command with these environment parameters

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