Warn users that DomPDF might fail if Twig development mode is on

Created on 9 September 2024, 6 months ago

Problem/Motivation

If you go to /admin/config/development/settings and check "Twig development mode" and try to print a node with special chars like æøå (or even æøå), these special characters will fail to print correctly in the PDF.
You'll get ugly stuff like à ̧ and Ã¥. No matter what font you are using. No matter how you try to encode the HTML.

Steps to reproduce

Use Entity Print with the DomPDF engine.
Fill node 1 with special characters in a typical CKeditor 5 body field.
Ask to see /print/pdf/node/1

You can paste special characters from a good source like this one.

Proposed resolution

Warn people about Twig development mode at /admin/config/content/entityprint
The warnings are currently generated by /entity_print/src/Form/SettingsForm.php does it.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇩🇰Denmark Steven Snedker

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

Comments & Activities

Production build 0.71.5 2024