SPB Git forge

spb/auto-ka

Public
61commits 1branches 0releases
14.4 MBsize
maindefault branch
12 days agolast push
Python 61.6% TypeScript 20.9% CSS 11.4% JavaScript 5.1% HTML 1.1%

kapdf : pas d en-tête/pied sur la couverture (correctif moteur commun)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Simon-Pierre Boucher committed 1 mo ago (Aug 18, 2026) parent 6a85595

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