Experiencing blank or empty pdf using Entity Print Views module, with Dompdf engine

Created on 15 April 2024, 7 months ago
Updated 16 April 2024, 7 months ago

Problem/Motivation

When we attempt to provide a custom URL where users can download the pdf with this pattern: /print/view/pdf/machine-name-of-view/machine-name-of-display, a blank or empty pdf is returned.

Using entity print to output pdf letters. As some of the details of the letter are sensitive, they need to be generated on-the-fly with personal data field values being injected via a CRM integration. We have created one view with two displays to cater to two profiles. Initially, we want to control the templating and styling, and this works with the following view page path: /machine-name-of-view/machine-name-of-display.

Our template is html--machinenameofview--machine-name-of-display.html.twig.

Entity print config settings:
Enable Default CSS: Enabled
PDF engine: Dompdf
HTML5 Parser: enabled
Remote URLs: enabled
font subsetting: enabled
embedded PHP: disabled

🐛 Bug report
Status

Active

Version

2.13

Component

Code

Created by

🇬🇧United Kingdom William_Kan

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

Comments & Activities

Production build 0.71.5 2024