OpenSlides / OpenSlides/openslides-client

Ballot PDF generation is broken (also on demosystem)

Open
#5,981 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Used this demo system and created a ballot paper here:
    https://demo.openslides.org/18/assignments/3
  2. 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.

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.