From 36dc95598483a53a09dc6b6f7979103a7608b738 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 12 Dec 2018 00:58:05 +0100 Subject: [PATCH] Fix the documentation how to calculate the cell height --- tcpdf.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcpdf.php b/tcpdf.php index 24ef434..a2cfdee 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -6219,12 +6219,12 @@ class TCPDF { * $this->setPage($page); * if ($page == $start_page) { * // first page - * $height = $this->h - $start_y - $this->bMargin; + * $height += $this->h - $start_y - $this->bMargin; * } elseif ($page == $end_page) { * // last page - * $height = $end_y - $this->tMargin; + * $height += $end_y - $this->tMargin; * } else { - * $height = $this->h - $this->tMargin - $this->bMargin; + * $height += $this->h - $this->tMargin - $this->bMargin; * } * } * }