5,7 → 5,7 |
require_once('tcpdf_config.php'); |
require_once('tcpdf/tcpdf.php'); |
|
set_time_limit(6); |
//set_time_limit(6); |
Class GenerateurPDF { |
|
public $pdf; |
131,7 → 131,8 |
function elude($txt, $limite_lignes = 3) { |
// echo strlen($txt) . ' '. $this->getlinenb($txt) . ' ' . $limite_lignes . "\n"; |
|
$marge = $this->pdf->getCellPaddings()['T'] + $this->pdf->getCellPaddings()['B']; |
$cell_paddings = $this->pdf->getCellPaddings(); |
$marge = $cell_paddings['T'] + $cell_paddings['B']; |
$line_height = $this->pdf->getStringHeight($this->column_width, "a") - $marge; |
if($limite_lignes > 1) { |
$lim = $line_height * $limite_lignes + $marge; // $line_height + ($line_height - $marge) * ($limite_lignes - 1); |
152,7 → 153,7 |
// TODO: affichage pays dans "localité" |
// ORDER BY id_observation |
// italique pour nom d'espèce, mais pas auteur |
function doHTMLcell($obs) { |
function doHTMLcell(&$obs) { |
$this->pdf->setCellMargins(0,0,0,0); |
$width = $this->column_width = 98; |
|