Work on FPDF replacement by TCPDF

This commit is contained in:
Laurent Destailleur 2010-09-01 11:44:27 +00:00
parent e15bc371b1
commit a2cca4c215
19 changed files with 35 additions and 2 deletions

View File

@ -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");

View File

@ -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);

View File

@ -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);

View File

@ -153,6 +153,7 @@ class pdf_edison extends ModelePDFCommandes
$pdf=new FPDI('P','mm',$this->format);
}
$pdf->SetFont('Helvetica');
$pdf->Open();
$pagenb=0;

View File

@ -175,6 +175,7 @@ class pdf_einstein extends ModelePDFCommandes
$pdf=new FPDI('P','mm',$this->format);
}
$pdf->SetFont('Helvetica');
$pdf->Open();
$pagenb=0;

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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";

View File

@ -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);

View File

@ -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");