mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-10 03:28:18 +01:00
Work on replacement of FPDF with TCPDF
This commit is contained in:
@@ -144,6 +144,11 @@ class pdf_sirocco extends ModelePDFDeliveryOrder
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
{
|
||||
$pdf->setPrintHeader(false);
|
||||
$pdf->setPrintFooter(false);
|
||||
}
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
// Complete object by loading several other informations
|
||||
|
||||
@@ -166,7 +166,12 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
if (class_exists('TCPDF'))
|
||||
{
|
||||
$pdf->setPrintHeader(false);
|
||||
$pdf->setPrintFooter(false);
|
||||
}
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
// Complete object by loading several other informations
|
||||
$expedition=new Expedition($this->db);
|
||||
|
||||
Reference in New Issue
Block a user