1
0
forked from ScoDoc/ScoDoc

Texte additionnel sur pieds de pages PDF. Closes #653.

This commit is contained in:
Emmanuel Viennet 2024-05-21 21:14:50 +02:00
parent 8ee373db7d
commit 489acb26d2
2 changed files with 11 additions and 1 deletions

View File

@ -351,7 +351,7 @@ class ScoDocPageTemplate(PageTemplate):
canv.drawString( canv.drawString(
self.preferences["pdf_footer_x"] * mm, self.preferences["pdf_footer_x"] * mm,
self.preferences["pdf_footer_y"] * mm, self.preferences["pdf_footer_y"] * mm,
content, content + " " + self.preferences["pdf_footer_extra"],
) )
canv.restoreState() canv.restoreState()

View File

@ -963,6 +963,16 @@ class BasePreferences:
"category": "pdf", "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", "pdf_footer_x",
{ {