diff --git a/libraries/export/pdf.php b/libraries/export/pdf.php index f1aeb6d026..8e2bd53f64 100644 --- a/libraries/export/pdf.php +++ b/libraries/export/pdf.php @@ -152,7 +152,7 @@ class PMA_PDF extends TCPDF // Now let's start to write the table $row = 0; $tmpheight = array(); - $maxpage = 0; + $maxpage = $this->page; while ($data = PMA_DBI_fetch_row($this->results)) { $this->page = $currpage; diff --git a/libraries/schema/Pdf_Relation_Schema.class.php b/libraries/schema/Pdf_Relation_Schema.class.php index 73f075b022..46644dc613 100644 --- a/libraries/schema/Pdf_Relation_Schema.class.php +++ b/libraries/schema/Pdf_Relation_Schema.class.php @@ -979,14 +979,17 @@ class PMA_Pdf_Relation_Schema extends PMA_Export_Relation_Schema */ private function _strokeGrid() { - global $pdf, $with_doc; + global $pdf; $gridSize = 10; $labelHeight = 4; $labelWidth = 5; - if ($with_doc) { + if ($this->withDoc) { $topSpace = 6; $bottomSpace = 15; + } else { + $topSpace = 0; + $bottomSpace = 0; } $pdf->SetMargins(0, 0);