From d7e55d1d4d83c8183c53d78b24f67101a6689b3d Mon Sep 17 00:00:00 2001 From: christianbeeznst Date: Tue, 25 Jun 2024 13:26:03 -0500 Subject: [PATCH] Internal: Remove pagination from certificate footer - refs BT#21812 --- public/main/inc/lib/certificate.lib.php | 2 ++ public/main/inc/lib/pdf.lib.php | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/public/main/inc/lib/certificate.lib.php b/public/main/inc/lib/certificate.lib.php index ad543b64f52..9f187f15a41 100644 --- a/public/main/inc/lib/certificate.lib.php +++ b/public/main/inc/lib/certificate.lib.php @@ -746,6 +746,8 @@ public function generatePdfFromCustomCertificate(): void false, null, false, + true, + true, true ); } diff --git a/public/main/inc/lib/pdf.lib.php b/public/main/inc/lib/pdf.lib.php index 117080acb23..766ea0101a6 100644 --- a/public/main/inc/lib/pdf.lib.php +++ b/public/main/inc/lib/pdf.lib.php @@ -383,7 +383,8 @@ public function content_to_pdf( $fileToSave = null, $returnHtml = false, $addDefaultCss = false, - $completeHeader = true + $completeHeader = true, + $disableFooter = false ) { $urlAppend = ''; @@ -486,6 +487,9 @@ public function content_to_pdf( } @$this->pdf->WriteHTML($document_html); + if ($disableFooter) { + $this->pdf->SetHTMLFooter(''); + } if (empty($pdf_name)) { $output_file = 'pdf_'.date('Y-m-d-his').'.pdf';