[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] PluginPDF: fix duplicate PDF cover page generation with coverpage_image_settings

"Adrien Mbuya Maloba \(@adrienmaloba\) via TikiWiki-cvs" <[email protected]> Tue, 14 Jul 2026 20:16:36 +0000
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a56992415740_382ead8e435356@gitlab-sidekiq-low-urgency-cpu-bound-v2-7bdf8cff9b-t7r9w.mail>

Adrien Mbuya Maloba pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
ddf8b5d1 by Adrien Mbuya Maloba at 2026-07-14T23:10:24+03:00
[FIX] PluginPDF: fix duplicate PDF cover page generation with coverpage_image_settings
---
* [FIX] PluginPDF: fix duplicate PDF cover page generation with coverpage_image_settings

See merge request tikiwiki/tiki!10720

- - - - -


1 changed file:

- lib/pdflib.php


Changes:

=====================================
lib/pdflib.php
=====================================
@@ -570,8 +570,6 @@ class PdfGenerator
                 $textBgColor = ! empty($coverPage[3]) ? "background-color:{$coverPage[3]};" : '';
                 $textColor = ! empty($coverPage[4]) ? "color:{$coverPage[4]};" : '';
             }
-            $mpdf->WriteHTML('<body style="' . $coverPageBgColor . 'margin:0px;padding:0px"><div style="height:100%;background-image:url(' . $coverImage . ');padding:20px;background-repeat: no-repeat;background-position: center; "><div style="' . $coverPageBorder . 'height:95%;">
-            <div style="text-align:' . $textAlign . ';margin-top:30%;' . $textColor . '"><div style="' . $textBgColor . $coverPageTextBorder . 'margin-bottom:10px;font-size:50px;">' . $coverPage[0] . '</div>' . $subHeading . '</div></div></body>');
             $textColor = '';
             $textAlign = 'center';
             $textBgColor = '';



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ddf8b5d193d7d98182a718ff1d7e638c6fee3685

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ddf8b5d193d7d98182a718ff1d7e638c6fee3685
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs