Work on FPDF replacement by TCPDF
This commit is contained in:
parent
e15bc371b1
commit
a2cca4c215
@ -72,6 +72,8 @@ if ($_POST["action"] == "builddoc" && $user->rights->facture->lire)
|
||||
if ($conf->global->MAIN_DISABLE_PDF_COMPRESSION) $pdf->SetCompression(false);
|
||||
//$pdf->SetCompression(false);
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
//$pdf->Open();
|
||||
//$pdf->AddPage();
|
||||
//$title=$langs->trans("BillsCustomersUnpaid");
|
||||
|
||||
@ -112,6 +112,8 @@ class CommActionRapport
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->Open();
|
||||
$pagenb=0;
|
||||
$pdf->SetDrawColor(128,128,128);
|
||||
|
||||
@ -127,6 +127,8 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->Open();
|
||||
$pagenb=0;
|
||||
$pdf->SetDrawColor(128,128,128);
|
||||
|
||||
@ -153,6 +153,7 @@ class pdf_edison extends ModelePDFCommandes
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->Open();
|
||||
$pagenb=0;
|
||||
|
||||
@ -175,6 +175,7 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->Open();
|
||||
$pagenb=0;
|
||||
|
||||
@ -152,6 +152,8 @@ Class pdf_expedition_merou extends ModelePdfExpedition
|
||||
$pdf=new FPDI('l','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->Open();
|
||||
$pagenb=0;
|
||||
$pdf->SetDrawColor(128,128,128);
|
||||
|
||||
@ -284,6 +284,8 @@ Class pdf_expedition_rouget extends ModelePdfExpedition
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->Open();
|
||||
$pagenb=0;
|
||||
$pdf->SetDrawColor(128,128,128);
|
||||
|
||||
@ -173,6 +173,8 @@ class pdf_oursin extends ModelePDFFactures
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->Open();
|
||||
$pagenb=0;
|
||||
$pdf->SetDrawColor(128,128,128);
|
||||
|
||||
@ -137,6 +137,8 @@ class pdf_soleil extends ModelePDFFicheinter
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->Open();
|
||||
$pagenb=0;
|
||||
$pdf->SetDrawColor(128,128,128);
|
||||
|
||||
@ -144,6 +144,7 @@ class pdf_sirocco extends ModelePDFDeliveryOrder
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
// Complete object by loading several other informations
|
||||
$expedition=new Expedition($this->db);
|
||||
|
||||
@ -166,6 +166,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
// Complete object by loading several other informations
|
||||
$expedition=new Expedition($this->db);
|
||||
|
||||
@ -412,6 +412,8 @@ class pdf_standard {
|
||||
$pdf=new FPDI('P',$this->Tformat['metric'],$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->SetTitle($outputlangs->transnoentities('MembersCards'));
|
||||
$pdf->SetSubject($outputlangs->transnoentities("MembersCards"));
|
||||
$pdf->SetCreator("Dolibarr ".DOL_VERSION);
|
||||
|
||||
@ -153,7 +153,7 @@ class pdf_standardlabel {
|
||||
//$this->_Pointille($pdf,$_PosX,$_PosY,$_PosX+$this->_Width,$_PosY+$this->_Height,0.3,25);
|
||||
$this->_Croix($pdf,$_PosX,$_PosY,$_PosX+$this->_Width,$_PosY+$this->_Height,0.1,10);
|
||||
}
|
||||
|
||||
|
||||
// Top
|
||||
if ($header!='')
|
||||
{
|
||||
@ -226,7 +226,7 @@ class pdf_standardlabel {
|
||||
$pdf->Cell($this->_Width, $this->_Line_Height, $outputlangs->convToOutputCharset($footer),0,1,'C');
|
||||
}
|
||||
//print "$_PosY+$this->_Height-$this->_Line_Height-1<br>\n";
|
||||
|
||||
|
||||
$this->_COUNTY++;
|
||||
|
||||
if ($this->_COUNTY == $this->_Y_Number) {
|
||||
@ -391,6 +391,8 @@ class pdf_standardlabel {
|
||||
$pdf=new FPDI('P',$this->Tformat['metric'],$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->SetTitle($outputlangs->transnoentities('MembersLabels'));
|
||||
$pdf->SetSubject($outputlangs->transnoentities("MembersLabels"));
|
||||
$pdf->SetCreator("Dolibarr ".DOL_VERSION);
|
||||
|
||||
@ -150,6 +150,8 @@ class pdf_baleine extends ModelePDFProjects
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
// Complete object by loading several other informations
|
||||
$task = new Task($this->db);
|
||||
$tasksarray = $task->getTasksArray(0,0,$object->id);
|
||||
|
||||
@ -173,6 +173,8 @@ class pdf_propale_azur extends ModelePDFPropales
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->Open();
|
||||
$pagenb=0;
|
||||
$pdf->SetDrawColor(128,128,128);
|
||||
|
||||
@ -146,6 +146,8 @@ class pdf_propale_jaune extends ModelePDFPropales
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->Open();
|
||||
$pagenb=0;
|
||||
$pdf->SetDrawColor(128,128,128);
|
||||
|
||||
@ -117,6 +117,7 @@ class pdf_paiement
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$sql = "SELECT p.datep as dp, f.facnumber";
|
||||
//$sql .= ", c.libelle as paiement_type, p.num_paiement";
|
||||
|
||||
@ -164,6 +164,8 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
||||
$pdf=new FPDI('P','mm',$this->format);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
$pdf->Open();
|
||||
$pagenb=0;
|
||||
$pdf->SetDrawColor(128,128,128);
|
||||
|
||||
@ -250,6 +250,8 @@ if ( $resql=$db->query($sql) )
|
||||
if ($conf->global->MAIN_DISABLE_PDF_COMPRESSION) $pdf->SetCompression(false);
|
||||
//$pdf->SetCompression(false);
|
||||
|
||||
$pdf->SetFont('Helvetica');
|
||||
|
||||
//$pdf->Open();
|
||||
//$pdf->AddPage();
|
||||
//$title=$langs->trans("BillsCustomersUnpaid");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user