From a8376a038ae7cab8ebada0845689afe1cc141ffd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Dec 2010 22:07:05 +0000 Subject: [PATCH] Fix: A lot of fix in TCPDF compatibility --- .../includes/modules/rapport/pdf_paiement.class.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/htdocs/includes/modules/rapport/pdf_paiement.class.php b/htdocs/includes/modules/rapport/pdf_paiement.class.php index c1325950db0..81f11980996 100644 --- a/htdocs/includes/modules/rapport/pdf_paiement.class.php +++ b/htdocs/includes/modules/rapport/pdf_paiement.class.php @@ -237,7 +237,7 @@ class pdf_paiement $pdf->SetXY(10,10); $pdf->MultiCell(200, 2, $title, 0, 'C'); - $pdf->SetFont('','',10); + $pdf->SetFont('','',12); $pdf->SetXY (11, 16); $pdf->MultiCell(80, 2, $outputlangs->transnoentities("DateBuild")." : ".dol_print_date(time(),"day",false,$outputlangs,true), 0, 'L'); @@ -247,23 +247,24 @@ class pdf_paiement // Title line - $pdf->SetXY (11, $this->tab_top+2); + $pdf->SetXY (11, $this->tab_top+1); $pdf->MultiCell(30, 2, 'Date'); $pdf->line(40, $this->tab_top, 40, $this->tab_top + $this->tab_height + 10); - $pdf->SetXY (42, $this->tab_top+2); + $pdf->SetXY (42, $this->tab_top+1); $pdf->MultiCell(40, 2, $outputlangs->transnoentities("PaymentMode"), 0, 'L'); $pdf->line(80, $this->tab_top, 80, $this->tab_top + $this->tab_height + 10); - $pdf->SetXY (82, $this->tab_top+2); + $pdf->SetXY (82, $this->tab_top+1); $pdf->MultiCell(40, 2, $outputlangs->transnoentities("Invoice"), 0, 'L'); $pdf->line(120, $this->tab_top, 120, $this->tab_top + $this->tab_height + 10); - $pdf->SetXY (122, $this->tab_top+2); + $pdf->SetXY (122, $this->tab_top+1); $pdf->MultiCell(40, 2, $outputlangs->transnoentities("AmountInvoice"), 0, 'L'); $pdf->line(160, $this->tab_top, 160, $this->tab_top + $this->tab_height + 10); - $pdf->SetXY (162, $this->tab_top+2); + + $pdf->SetXY (162, $this->tab_top+1); $pdf->MultiCell(40, 2, $outputlangs->transnoentities("AmountPayment"), 0, 'L'); $pdf->line(10, $this->tab_top + 10, 200, $this->tab_top + 10 );