events 3.9.0: SVG logos in PDFs (svg-to-pdfkit), the Accounts logo copied for PDFs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 00:54:25 +02:00
co-authored by Claude Opus 5.5
parent 8055e1ec62
commit 805967a85a
10 changed files with 143 additions and 44 deletions
+6 -4
View File
@@ -7,8 +7,9 @@ and this project follows [Semantic Versioning](https://semver.org/).
## [3.9.0] - 2026-12-01
No migration, no new settings or environment variables. Works with any Accounts; nothing changes
on a site without Accounts.
No migration, no new settings or environment variables. One new dependency: `svg-to-pdfkit`
0.1.8 (MIT, pure JavaScript; draws SVG logos in PDFs). Works with any Accounts; nothing changes on
a site without Accounts.
### Fixed
@@ -27,8 +28,9 @@ on a site without Accounts.
- **PDFs with the church's logo from Accounts.** Tickets, invoices, receipts, certificates and
privacy exports could only draw a logo uploaded here. The logo from Accounts is copied into
`uploads/accounts` (once per address, when the profile arrives or the first PDF needs it; old
copies removed; 2 MB at most; `utils/logoCopy.js`). Only PNG and JPEG can be drawn in a PDF; an
SVG logo (the demo churches') isn't copied and the PDFs show the church's name, as before.
copies removed; 2 MB at most; `utils/logoCopy.js`). PNG and JPEG are drawn as pictures and SVG
(the demo churches' logos, and an SVG uploaded here) as shapes with `svg-to-pdfkit`
(`drawLogo`); an SVG never opens a file or address it names. WebP and GIF show the name only.
- A logo address on another `localhost` port (Accounts in development) is no longer rewritten to
the API's address; only this site's own uploads are (`resolveToApiOrigin`).