kapdf : pas de pied de page sur la couverture (correctif du moteur commun)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 changed file +2 −2
modified
sortika/kapdf.py
+2 −2
@@ -79,7 +79,7 @@ class _PDF(FPDF): | ||
| 79 | 79 | self.set_auto_page_break(True, margin=22) |
| 80 | 80 | |
| 81 | 81 | def header(self): |
| 82 | − if self.cover_mode: | |
| 82 | + if self.cover_mode or self.page_no() == 1: | |
| 83 | 83 | return |
| 84 | 84 | self.set_font("helvetica", "B", 8.5) |
| 85 | 85 | self.set_text_color(*INK) |
@@ -95,7 +95,7 @@ class _PDF(FPDF): | ||
| 95 | 95 | self.set_y(20) |
| 96 | 96 | |
| 97 | 97 | def footer(self): |
| 98 | − if self.cover_mode: | |
| 98 | + if self.cover_mode or self.page_no() == 1: | |
| 99 | 99 | return |
| 100 | 100 | self.set_y(-15) |
| 101 | 101 | self.set_draw_color(*INK3) |
| 102 | 102 | |