OpenSlides / OpenSlides/openslides-client
Ballot PDF generation is broken (also on demosystem)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 35
- Forks
- 52
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 52
Description
Describe the bug
When creating ballots from an election, the pdf is badly formatted. Lots of empty space, sometimes whole empty pages.
How to Reproduce
- Used this demo system and created a ballot paper here:
https://demo.openslides.org/18/assignments/3 - Look at broken PDF (also attached)
Expected behavior
A well formatted PDF, without empty pages between, or duplicated lines.
System information
- OpenSlides version: 4.2.29 (2026-01-17)
- Additional version information (if any): [e.g. commit hash or month of installation]
- Device: Notebook
- OS: Windows 11
- Browser: Chrome
Additional context
Wahl - Wahl des Vorstandes - stimmzettel.pdf
Screenshots
If applicable, add screenshots to help explain your problem. I think something is wrong with the logic that calculates the layout of the pdf.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the ballot from the demo election at https://demo.openslides.org/18/assignments/3 and compare the generated PDF with the attached example. Trace the ballot PDF generation and layout calculation from that election workflow; done means the PDF has no empty pages, duplicated lines, or excessive empty space.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100