[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 07/12: Debugging info to remove
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 07/12: Debugging info to remove |
Date: |
Mon, 25 Jan 2016 22:58:37 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 014fd5ce8b65e0d6aec1a5a2ebc844f042d936ac
Author: Dany De Bontridder <address@hidden>
Date: Mon Jan 25 19:38:59 2016 +0100
Debugging info to remove
---
include/lib/class_pdf.php | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/include/lib/class_pdf.php b/include/lib/class_pdf.php
index 6821fc0..f3bd6bd 100644
--- a/include/lib/class_pdf.php
+++ b/include/lib/class_pdf.php
@@ -119,6 +119,12 @@ class PDF extends TFPDF
* faire un saut de page (renvoit true) si dépasse
*/
$y=$this->GetY();
+
+ $sizetext=$this->GetStringWidth($this->cells[$i]->text);
+ $this->cells[$i]->text .= sprintf("size : %d",$sizetext);
+ $this->cells[$i]->text .= sprintf("cellwidth:
%d",$this->cells[$i]->width);
+ $this->cells[$i]->text .= sprintf("cellheigth:
%d",$this->cells[$i]->height);
+
if ( $y > ($this->h - $this->bMargin-20))
return true;
}
@@ -129,7 +135,6 @@ class PDF extends TFPDF
{
static $e=0;
$e++;
- if ( $e == 40 ) xdebug_break ();
if ( $this->check_page_add() == true ) $this->AddPage ();
$this->bigger=0;
$size=count($this->cells);
@@ -194,7 +199,7 @@ class PDF extends TFPDF
}
function line_new($p_step=null){
$this->print_row();
- if ( $this->bigger==0)
+ if ( $this->bigger==0)
parent::Ln($p_step);
else
parent::Ln($this->bigger);
- [Noalyss-commit] [noalyss] branch master updated (8f47684 -> 01d9cf0), Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 05/12: Update comment for belong_ledger, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 01/12: Problem read README.export-PDF, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 07/12: Debugging info to remove,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 03/12: Task #3 - Problem avec export PDF depuis COMPTA/PRINT/PRINTJRN Cannot remove a shared note, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 04/12: #1251 : impression PDF Les Headers et Footer ne doivent pas utiliser write_celle et ln, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 10/12: Compute the height of a MultiCell and check is a page must be added, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 06/12: Update unit-test to new structure, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 12/12: Merge branch 'rel6912-export-pdf', Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 11/12: Fix problem with PDF and the empty page due a wrong page break, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 02/12: #1251 impression PDF Remove function Cell that fct cannot be overloaded Change Cell by write_cell change ln by print_row, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 09/12: HTML doc, Dany De Bontridder, 2016/01/25
- [Noalyss-commit] [noalyss] 08/12: update doc, Dany De Bontridder, 2016/01/25