[GH-ISSUE #55] Ability to edit voucher print template #27

Closed
opened 2026-05-07 00:17:54 +02:00 by BreizhHardware · 2 comments

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).

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).
BreizhHardware 2026-05-07 00:17:54 +02:00
Author
Owner

@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?

<!-- gh-comment-id:2510829541 --> @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?
Author
Owner

@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

<!-- gh-comment-id:2571421369 --> @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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/unifi-voucher-site#27
No description provided.