I tried to use the Entity Print View module to print PDF of a Views page and I got this errorr:

Error message
Error generating document: Failed to generate PDF: Failed without error message: C: && cd "C:/wamp64/www/drupal_site_folder/vendor/mikehaertl" && "phpwkhtmltopdf" "--orientation" "portrait" "--username" "XXXXX" "--password" "YYYY" "--page-size" "letter" "--zoom" "1" "--viewport-size" "_none" "C:\Windows\Temp\tmpF69.tmp.html" "C:\Windows\Temp\tmpF7A.tmp.pdf" (Exit code: 1)

It's using the phpwkhtmltopdf engine and I'm running local on WAMP. I also confirmed the Temp folder exist. Any idea what's wrong?

Comments

ojchris37 created an issue.

ojchris’s picture

Based on some comment at https://www.drupal.org/project/entity_print/issues/2865185 changing the engine to DomPDF from phpwkhtmltopdf eliminated the error and got the PDf printed