Hello Jacob and all guys involved,

I was trying to export PDFs using a Print Entity module but i failed. Drupa gave me following error statement

Error generating document: Missing dependencies. Please install with: composer require "dompdf/dompdf 0.8.0"

Do you have any easy / safe advice to fix this error?
Thank you.
_
I am running the latest Drupal 9.

CommentFileSizeAuthor
missing-dependencies.png8.83 KBjohnfrm
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

johnfrm created an issue. See original summary.

johnfrm’s picture

Issue summary: View changes
jrockowitz’s picture

Category: Bug report » Support request
The Webform module's issue queue is for bugs, feature requests, and planning. Please post general support questions to Drupal Answers. You can also ask questions or help answer questions on the #webform channel on Drupal Slack.

You need to configure the Entity Print module and a PDF engine.

@see https://www.drupal.org/node/2806211

johnfrm’s picture

here's more detailed error message to this issue I forgot to post:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /drupal/en/batch?id=41&op=do_nojs&op=do
StatusText: 500 Service unavailable (with message)
ResponseText: The website encountered an unexpected error. Please try again later.
You need to configure the Entity Print module and a PDF engine. @see https://www.drupal.org/node/2806211

unfortunately that guide is not very user-friendly for noobs like myself and none of them seems they can not solve this error for Drupal 9:

  • WkHtmlToPdf - i have tried to download / install recommended binary (Win 64bit), but did not work / is supported in Drupal 7 and Drupal 8
  • Dompdf - supported in Drupal 8 only
  • TCPDF - supported in Drupal 8 only
  • mPDF - The mPDF library has been reviewed and decided against adding it to this project, as Dompdf provides a much better implementation
  • HTML2PDF - did not work as expected with Drupal 8
jrockowitz’s picture

I think Entity Print module is supported in Drupal 9.

You might be running into #3169624: Entity print not supports Dompdf 0.8.6 and need to downgrade via composer require 'dompdf/dompdf: 0.8.5'.

jrockowitz’s picture

Status: Needs review » Closed (works as designed)

Any additional support questions should be posted at https://drupal.stackexchange.com or the Entity Print issue queue.