Give every template its own assets: fonts, logos and icons, vector first, so that they print #8
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#8
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: "Every template must hold its assets, so fonts, logos, icons, or other graphical elements can be printed. Vectorial graphics is always preferred."
What the core allows today
src/postulo/plugins/logos.pyin the core).data:addresses only, and Chromium aborts every request (src/postulo/documents/pdf.py). The wiki's CVs states the rule: "its CSS inline, and anything else as adata:address".data:images, but nodata:font (font-src 'self'), nostyleattribute, and no<style>without the page's nonce, inside an inline SVG included.So a template can inline a drawing or a
data:image by hand today, but cannot bring a font that the preview shows, and has nowhere to keep a file. The rest waits for postulo/postulo#343.What the plugin should do
currentColor) so they print in black and white. A raster image only where a vector cannot exist, at a resolution made for print.Decisions
Needs from the core
postulo/postulo#343: a way for a theme to name a file in its own package and have it inlined, and a preview that shows what the PDF shows.
Done when
From the list of template improvements of 2026-09-30.