Bug 1140279
Summary: | wkhtmltopdf requires running X | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Erinn Looney-Triggs <erinn.looneytriggs> |
Component: | wkhtmltopdf | Assignee: | Lubomir Rintel <lkundrak> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | epel7 | CC: | customercare, fedora, frank.duerr, lkundrak, marc, projects.rg, rdieter, vurcease |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-07-08 22:03:36 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Erinn Looney-Triggs
2014-09-10 15:49:40 UTC
https://code.google.com/p/wkhtmltopdf/issues/detail?id=3 claims this requires some Qt support/patch. Its possible that never got upstreamed (pretty sure fedora/rhel Qt packages don't include the patch separately). Adding my voice to this issue. Some people are finding unsavory workarounds for this (https://github.com/KnpLabs/snappy/issues/89) that could have negative impact down the road as software ages. The virtual x-server seems to be the most popular workaround. I ran into this issue within a Vagrant-powered Fedora development environment. Using the yum installer during provisioning to assemble everything, including wkhtmltopdf. Looks like the original issue reference is no longer valid, seems the project has moved to http://wkhtmltopdf.org/ and https://github.com/wkhtmltopdf/wkhtmltopdf/issues and I don't see this issue documented there yet... hint hint. :) I do see some Qt-related forked projects under https://github.com/wkhtmltopdf/ but it's not clear to me offhand which commits (patches) wkhtmltopdf requires. Working on a PHP extension which is mostly a bindings for this library, I encounter the same issue, X is mandatory While the init is properly called with use_graphics=0 From the code lot of things use __EXTENSIVE_WKHTMLTOPDF_QT_HACK__ This can be checked using #include <stdio.h> #include <wkhtmltox/pdf.h> int main (int argc, char *argv[]) { printf("Extended: %d\n", wkhtmltopdf_extended_qt()); return 0; } This currently returns 0 (which 1 seems needed) Workaround: xvfb-run --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf ... options... but i highly recommand to compile without x support, as this solution is slow and completly unnecessary as other versions show. I see it documented now at: https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2811 at least No progress with this for over a year here@brhc nor at github ... ideas? Ping. Will this ticket be processed at some point? Status "New" since 2014?! EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug. The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |