Created
January 30, 2018 02:24
-
-
Save kai101/7d85506890969d0a444d40a4fb8e7ef3 to your computer and use it in GitHub Desktop.
Revisions
-
kai101 created this gist
Jan 30, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ 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 ```