Support PHP 7.4+ (mPDF 8)

Created on 23 March 2021, over 3 years ago
Updated 25 July 2023, over 1 year ago

Problem/Motivation

I am unable to install this with php 7.4 due to the mPDF dependency required as ^7.0.0.

Steps to reproduce

composer require drupal/pdf_using_mpdf
mpdf/mpdf[v7.1.7, ..., v7.1.9] require php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 -> your php version (7.4.16) does not satisfy that requirement.

Proposed resolution

Update module code to work with mPDF 8.

Remaining tasks

TBD

User interface changes

None

API changes

Not sure

Data model changes

Not sure

๐Ÿ’ฌ Support request
Status

Fixed

Version

2.2

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States mortona2k Seattle

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany Emil Stoianov

    +1 works for me
    Release it !

  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine gilmord ๐Ÿ‡บ๐Ÿ‡ฆUkraine
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine gilmord ๐Ÿ‡บ๐Ÿ‡ฆUkraine

    Thanks, @all
    merged into the latest dev.

  • Status changed to Fixed almost 2 years ago
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine gilmord ๐Ÿ‡บ๐Ÿ‡ฆUkraine
  • ๐Ÿ‡จ๐Ÿ‡ฟCzech Republic honyik

    Hello, I can't see a dev version available on this module's page and trying to download 2.x from github only redirects me back here, therefore I still can't add this via composer and the only thing I can do is to download the 2.2 version and fix it manually, what am I missing here? Thank you

  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine gilmord ๐Ÿ‡บ๐Ÿ‡ฆUkraine

    Hi @honyik looks like some bug (or feature) of git.drupalcode.org
    I tried a couple of other projects - download leads to the project page on drupal.org.

    You can use git to download the files like this:

    git clone https://git.drupalcode.org/project/pdf_using_mpdf.git
    

    After that, you can switch the branch to the latest dev and use the files however you need.

    Also, I am not sure you will be able to fix anything manually, as the required library does not work with the packages of the fresh Drupal installation, and the maintainer of the library is not willing to fix that.

    Better look at the alternatives like dompdf, also modules like entity_print can work with various alternatives of the mpdf (if I remember correctly).

  • ๐Ÿ‡ง๐Ÿ‡ทBrazil viniciusosouza

    Is there any way to this feature be merged on a new release?

Production build 0.71.5 2024