Say for every template whether it is fluid or restricted to a paper format, and hold it to that #9
Labels
No labels
bug
documentation
enhancement
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo-templates#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The list says: "A template can either be 'fluid' and prints great in all common formats and orientations, or restricted, for example, export only to portrait A4 paper size."
What the core does today
PAGE_FORMAT = "A4"is a constant in the core'ssrc/postulo/documents/pdf.py, every built-in theme says@page { size: A4 }, and the DOCX export is A4 too.@pagea template writes. Chromium is called with the A4 constant and no orientation, so there a template's own page size is ignored (read from the code and the renderer's documented default; not tried).Themehas a name, a label, its templates and its provider.So a template can only be A4 portrait in practice. The rest waits for postulo/postulo#344.
What the plugin should do
Decisions
Needs from the core
postulo/postulo#344: a choice of paper, a way for a theme to declare what it supports, and both renderers honouring it.
Done when
From the list of template improvements of 2026-09-30.