phpwkhtmltopdf engine pdf printing configuration issues The screenshot below shows my Entity Print configurations for created styled PDFs from node content.

As shown in the screenshot I am using the phpwkhtmltopdf engine and the mikehaertl/phpwkhtmltopdf package is installed via composer.
However, when I try generating the target PDF, the following errors results:

Error generating document: Failed to generate PDF:
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: 1:
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: cannot open
?php: No such file
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: 2:
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: namespace:
not found /opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: 4:
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: use: not
found /opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: 6:
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: /bin:
Permission denied
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: 7:
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: INSTALL.txt:
not found /opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: 8:
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: INSTALL.txt:
not found /opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: 9:
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: INSTALL.txt:
not found /opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php:
10: /opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php:
INSTALL.txt: not found
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: 12:
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: Syntax
error: newline unexpected

I gave Pdf.php 777 permissions too.
Can anyone help, please?
/opt/drupal/vendor/mikehaertl/phpwkhtmltopdf/src/Pdf.php: cannot open
?php: No such file

You need to install the missing library using composer
composer require mikehaertl/phpwkhtmltopdf

In addition, you might also need h4cc/wkhtmltopdf, see Entity Print documentation