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