2
0
forked from Wavyzz/dolibarr

Work on replacement of FPDF with TCPDF

This commit is contained in:
Laurent Destailleur
2010-09-01 14:32:13 +00:00
parent acf961a506
commit a7f6fdecca
124 changed files with 115 additions and 58232 deletions

View File

@@ -112,7 +112,12 @@ class CommActionRapport
$pdf=new FPDI('P','mm',$this->format);
}
$pdf->SetFont('Helvetica');
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->Open();
$pagenb=0;

View File

@@ -127,7 +127,12 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
$pdf=new FPDI('P','mm',$this->format);
}
$pdf->SetFont('Helvetica');
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->Open();
$pagenb=0;

View File

@@ -153,7 +153,12 @@ class pdf_edison extends ModelePDFCommandes
$pdf=new FPDI('P','mm',$this->format);
}
$pdf->SetFont('Helvetica');
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->Open();
$pagenb=0;

View File

@@ -175,7 +175,12 @@ class pdf_einstein extends ModelePDFCommandes
$pdf=new FPDI('P','mm',$this->format);
}
$pdf->SetFont('Helvetica');
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->Open();
$pagenb=0;

View File

@@ -152,7 +152,12 @@ Class pdf_expedition_merou extends ModelePdfExpedition
$pdf=new FPDI('l','mm',$this->format);
}
$pdf->SetFont('Helvetica');
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->Open();
$pagenb=0;

View File

@@ -272,7 +272,12 @@ Class pdf_expedition_rouget extends ModelePdfExpedition
$pdf=new FPDI('P','mm',$this->format);
}
$pdf->SetFont('Helvetica');
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->Open();
$pagenb=0;

View File

@@ -178,8 +178,11 @@ class pdf_crabe extends ModelePDFFactures
//$pdf=new TCPDF('P','mm','A4');
}
//$pdf->setPrintHeader(false);
//$pdf->setPrintFooter(false);
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->Open();

View File

@@ -173,7 +173,12 @@ class pdf_oursin extends ModelePDFFactures
$pdf=new FPDI('P','mm',$this->format);
}
$pdf->SetFont('Helvetica');
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->Open();
$pagenb=0;

View File

@@ -139,6 +139,11 @@ class pdf_soleil extends ModelePDFFicheinter
$pdf=new FPDI('P','mm',$this->format);
}
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->Open();

View File

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

View File

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

View File

@@ -412,7 +412,12 @@ class pdf_standard {
$pdf=new FPDI('P',$this->Tformat['metric'],$this->format);
}
$pdf->SetFont('Helvetica');
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->SetTitle($outputlangs->transnoentities('MembersCards'));
$pdf->SetSubject($outputlangs->transnoentities("MembersCards"));

View File

@@ -391,6 +391,11 @@ class pdf_standardlabel {
$pdf=new FPDI('P',$this->Tformat['metric'],$this->format);
}
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->SetTitle($outputlangs->transnoentities('MembersLabels'));

View File

@@ -150,7 +150,12 @@ class pdf_baleine extends ModelePDFProjects
$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
$task = new Task($this->db);

View File

@@ -173,7 +173,12 @@ class pdf_propale_azur extends ModelePDFPropales
$pdf=new FPDI('P','mm',$this->format);
}
$pdf->SetFont('Helvetica');
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->Open();
$pagenb=0;

View File

@@ -146,7 +146,12 @@ class pdf_propale_jaune extends ModelePDFPropales
$pdf=new FPDI('P','mm',$this->format);
}
$pdf->SetFont('Helvetica');
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->Open();
$pagenb=0;

View File

@@ -117,7 +117,12 @@ class pdf_paiement
$pdf=new FPDI('P','mm',$this->format);
}
$pdf->SetFont('Helvetica');
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$sql = "SELECT p.datep as dp, f.facnumber";
//$sql .= ", c.libelle as paiement_type, p.num_paiement";

View File

@@ -164,7 +164,12 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
$pdf=new FPDI('P','mm',$this->format);
}
$pdf->SetFont('Helvetica');
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont('Helvetica');
$pdf->Open();
$pagenb=0;