[GH-ISSUE #114] printing layout problem #63

Closed
opened 2026-05-07 00:18:33 +02:00 by BreizhHardware · 1 comment

Originally created by @John34500 on GitHub (Jan 8, 2026).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/114

Originally assigned to: @glenndehaan on GitHub.

The problem

Hi,
I have a problem when I want to print a PDF ticket in French: the layout is bad, while in English there are no issues. In French, the QR code overlaps the login text and is spread over two pages.

What version of UniFi Voucher Site has the issue?

8.6.2

What was the last working version of UniFi Voucher Site?

No response

What type of installation are you running?

Docker

Anything in the logs that might be useful for us?


Additional information

No response

Originally created by @John34500 on GitHub (Jan 8, 2026). Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/114 Originally assigned to: @glenndehaan on GitHub. ### The problem Hi, I have a problem when I want to print a PDF ticket in French: the layout is bad, while in English there are no issues. In French, the QR code overlaps the login text and is spread over two pages. ### What version of UniFi Voucher Site has the issue? 8.6.2 ### What was the last working version of UniFi Voucher Site? _No response_ ### What type of installation are you running? Docker ### Anything in the logs that might be useful for us? ```Text ``` ### Additional information _No response_
BreizhHardware 2026-05-07 00:18:33 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@glenndehaan commented on GitHub (Jan 8, 2026):

Hi @John34500,

I can replicate the problem. And it is related to the first line of the voucher that breaks all offsets: Code de connexion WiFi. Unfortunately I can't fix the layout itself, since the PDF library requires me to work with fixed points.

My suggestion would be to see if we can shorten this text. I don't speak French so I can't help with that. If you think there is a better translation that could resolve the layout issue I would recommend you to contribute it via Crowdin: https://github.com/glenndehaan/unifi-voucher-site#translations

<!-- gh-comment-id:3725141080 --> @glenndehaan commented on GitHub (Jan 8, 2026): Hi @John34500, I can replicate the problem. And it is related to the first line of the voucher that breaks all offsets: `Code de connexion WiFi`. Unfortunately I can't fix the layout itself, since the PDF library requires me to work with fixed points. My suggestion would be to see if we can shorten this text. I don't speak French so I can't help with that. If you think there is a better translation that could resolve the layout issue I would recommend you to contribute it via Crowdin: https://github.com/glenndehaan/unifi-voucher-site#translations
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#63
No description provided.