Loading...
 
Skip to main content

wkhtmltopdf doesn't work without an X server

Status
Closed
Subject
wkhtmltopdf doesn't work without an X server
Version
6.x
7.x
Category
  • Error
  • Documentation (or Advocacy)
Feature
PDF
Print
Resolution status
Fixed or Solved
Submitted by
chrisbaume
Lastmod by
Marc Laporte
Rating
(0)
Description
When I tried using wkhtmltopdf for PDF export, all I got was 0 byte files. I turns out this is because the system running wkhtmltopdf must have an X server installed to work. This is not the case with my headless server, and I imagine that most web servers do not run X.
Solution
Either make a note in the documentation that you must run an X server alongside wkhtmltopdf, check this when the PDF option is enabled in the admin panel, or check to see if wkhtmltopdf is returning 0 byte files and handle appropriately.
Importance
2
Priority
10
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3954
Created
Wednesday 27 July, 2011 13:01:22 UTC
by chrisbaume
LastModif
Friday 13 January, 2012 00:14:47 UTC


Show PHP error messages