Error generating document: Failed to generate PDF using PHPWkhtmltopdf

Created on 23 January 2018, over 7 years ago
Updated 15 July 2025, 2 months ago

Problem/Motivation

We are using Entity Print Setup to enable the Entity Print Module . We are getting the following error message when we are using PHP Wkhtmltopdf and cannot find the appropriate solution.

Here is the setup

  1. Entity Print Module is enabled
  2. Enabled default css = unchecked
  3. Force Download = checked
  4. Pdf = PHP Wkhtmltopdf (wkhtmltopdf)
  5. paper size = letter
  6. paper orientation = portrait
  7. HTTP Authentication (both blank) = not used
  8. binary location = '../vendor/mikehaertl/phpwkhtmltopdf

Error message

Error generating document: Failed to generate PDF: Failed without error message: ../vendor/mikehaertl/phpwkhtmltopdf --orientation "portrait" --username "" --password "" "C:\Windows\tmp751A.tmp.html" "C:\Windows\tmp752B.tmp.pdf"

Current workaround:

  1. Switch to dompdf or TCPDF v1
🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024