Search code examples
phppdfmpdffpdi

mPDF use FPDI v2


I am currently using mPDF to handle a couple of things. The problem I'm facing however is that mPDF uses a version of FPDI that is unable to handle files over PDF version 1.4. There is a (paid) commercial addon that makes handling newer PDF files possible though. The problem is:

  • I installed mPDF through composer.
  • I am unable to change the FPDI package, since mPDF is a package in and of itself, that uses another package.

My question is: How can I change mPDF to use the commercial (v2) version of FPDI?

Thanks in advance.

~Brendan


Solution

  • There's this pull request, that adds compatibility for FPDI v2. Because of BC breaks it will be merged in mPDF 8.

    Until that just use the legacy version of the parser add-on. This can also be installed with composer.