Ignore:
Timestamp:
May 14, 2021, 2:00:23 PM (3 years ago)
Author:
roby
Message:

Aggiornamento per compatibilità con php7.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/crea_pagina.php

    r265 r347  
    1515    die ("You can't access this file directly...");
    1616}
     17
     18require_once('inc/hpdf5/autoload.php');
     19use Spipu\Html2Pdf\Html2Pdf;
     20use Spipu\Html2Pdf\Exception\Html2PdfException;
     21use Spipu\Html2Pdf\Exception\ExceptionFormatter;
     22
    1723global $name;
    1824
     
    259265                //$nomefile="elezioni_tabelle.pdf";
    260266                //$orienta="P";
    261                 require_once('inc/hpdf403/html2pdf.class.php');
    262                 $html2pdf = new HTML2PDF($orienta,$formato, 'it');
     267                $html2pdf = new Html2Pdf($orienta,$formato, 'it');
    263268                $html2pdf->WriteHTML($style, isset($_GET['vuehtml']));
    264269                $html2pdf->Output($nomefile);
Note: See TracChangeset for help on using the changeset viewer.