Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 13958  / 2 Years ago, wed, june 15, 2022, 11:16:51

I compiled wkhtmltopdf from source on Ubuntu 64bit server 10.04 as described in manual. When I try to convert it exits with an error message:



wkhtmltoimage: cannot connect to X server


There is X server installed but not running.
If I download already built version it is working but sometimes throws "Segmentation fault" exception.



So how to make compiled from source version work?


More From » xorg

 Answers
0

I think you need to install xvfb (Virtual Framebuffer 'fake' X server):



apt-get install xvfb


Then in the terminal:



xvfb-run wkhtmltoimage --format png --quality 100 --no-debug-javascript --height 800 http://facebook.com/ fb.png

[#43170] Thursday, June 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
overine

Total Points: 20
Total Questions: 109
Total Answers: 98

Location: Aruba
Member since Fri, Jun 24, 2022
2 Years ago
overine questions
Tue, Jul 12, 22, 00:27, 2 Years ago
Wed, Jan 11, 23, 02:15, 1 Year ago
Tue, Aug 10, 21, 01:39, 3 Years ago
;