mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-05-09 08:25:29 +02:00
[GH-ISSUE #55] Ability to edit voucher print template #27
Labels
No labels
bug
enhancement
pull-request
question
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/unifi-voucher-site#27
Loading…
Add table
Add a link
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?
Originally created by @dwmayr on GitHub (Nov 29, 2024).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/55
Originally assigned to: @glenndehaan on GitHub.
The feature
As in title - ability to even little edit voucher print templates - like custom textbox, logo change or even choose print paper size (to fit/center on A4 for eg).
@dwmayr commented on GitHub (Dec 2, 2024):
Or just separate template file just like for sending emails :) Because original one is somehow embedded into the code?
@glenndehaan commented on GitHub (Jan 4, 2025):
Hi @dwmayr,
Unfortunately I have to close this issue since this won't be fixed.
You are indeed correct that for both the PDF and ESC/POS print operations the template is hard baked into code.
The reason is that these formats are hard to work with since every shift within the layout needs to be compensated for, therefore it is almost impossible to fix this.
The only way at least for PDF's would be to embed chromium to then render a html page and use the print feature to export the pdf that way. The problem here lies in the fact that doing so would increase the project by almost 150mb's.
I hope this clears up why this is make in this way.
Kind regards,
Glenn