- Issue created by @stevewilson
- 🇬🇧United Kingdom stevewilson
I'm using FPDI 1.6.2 on Drupal 7 with Views PDF 7.x-3.1. I was under the impression that this is the latest version of FPDI compatible with Views PDF for Dupal 7.
With PHP 8.2, loading a PDF page created as described below results in numerous deprectations of the form:
Deprecated function: Callables of the form ["PdfTemplate", "TCPDF::SetFont"] are deprecated in FPDF_TPL->SetFont() (line 303 of /var/www/html/d7-dev.localhost/sites/all/libraries/fpdi/fpdf_tpl.php).
Inspection of the fpdf_tpl.php code reveals that the same deprecated construct is used also in lines 156, 333, 360, 382, 404 and 426.
Create a view, which generates a PDF page on-the-fly with Format "PDF Unformatted"
Load the page
Given the impending end of support for Drupal 7 it would be unreasonable to expect a permanent fix for this to be released; however, suggestions for a PHP 8.2 compliant code update that can be applied would be appreciated.
Offer PHP 8.2 compliant code update.
Active
3.1
Code
I'm using FPDI 1.6.2 on Drupal 7 with Views PDF 7.x-3.1. I was under the impression that this is the latest version of FPDI compatible with Views PDF for Dupal 7.