From 489acb26d2b6b2fede51662e3d92e299a718d8c3 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 21 May 2024 21:14:50 +0200 Subject: [PATCH] Texte additionnel sur pieds de pages PDF. Closes #653. --- app/scodoc/sco_pdf.py | 2 +- app/scodoc/sco_preferences.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_pdf.py b/app/scodoc/sco_pdf.py index 02cd6e87..c43f652d 100755 --- a/app/scodoc/sco_pdf.py +++ b/app/scodoc/sco_pdf.py @@ -351,7 +351,7 @@ class ScoDocPageTemplate(PageTemplate): canv.drawString( self.preferences["pdf_footer_x"] * mm, self.preferences["pdf_footer_y"] * mm, - content, + content + " " + self.preferences["pdf_footer_extra"], ) canv.restoreState() diff --git a/app/scodoc/sco_preferences.py b/app/scodoc/sco_preferences.py index effc1e68..53e7af02 100644 --- a/app/scodoc/sco_preferences.py +++ b/app/scodoc/sco_preferences.py @@ -963,6 +963,16 @@ class BasePreferences: "category": "pdf", }, ), + ( + "pdf_footer_extra", + { + "initvalue": "", + "title": "Texte à ajouter en pied de page", + "explanation": "sur tous les documents, par exemple vos coordonnées, ...", + "size": 78, + "category": "pdf", + }, + ), ( "pdf_footer_x", {