General improvements to the Entity Pdf module code, documentation and functionalities

Created on 22 September 2024, 4 months ago

Problem/Motivation

I have been using, testing and QAing this Entity Pdf module in my need of a solid and working solution to generate Pdf versions of my Entities view modes, and also generate them in batch, for multiple nodes at once in a unique pages PDF. I did this comparing this modules functionalities agains the Entity Print module one,
and at the end I decided privilege and adopt this Entity Pdf one, mostly thanks to the following:

  • - simplicity of code and its usage;
  • - cleaness and reliability of pdf generation by the mpdf/mpdf php library, that is the default rendering engine of this Entity Pdf module (compared to the ones embedded in the Entity Print);

At the same time I have recorded in the module the following main gaps (which I have decided to fill and develop within this issue, and to propose for their adoption / integration in the current 2.x development branch):

  • perform Drupal and PHP coding standards fixes to the actual code (pretty much un-compliant on that)
  • replacements of many hpstan: \Drupal calls (that should be avoided in classes) in favour of the correct use dependency injection instead
  • extended compatibility of the code (correctly refactored with the above) with Drupal 11
  • implementation of GitLab CI
  • implementation of an "Entity Pdf Download" action plugin, to automatically generate collated pdf entities, via Views Bulk Ops (directly replicating a similar action present (and very useful) in the Entity Print module (https://git.drupalcode.org/project/entity_print/-/blob/8.x-2.x/src/Plugi...)

Proposed resolution

I am going to create a MR that properly implements all the above mentioned requirements / tasks / improvements ...

📌 Task
Status

Needs work

Version

2.0

Component

Documentation

Created by

🇮🇹Italy itamair

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024