one-zero-eight / one-zero-eight/printers

PDF rebuild

Open
#45 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

If both page ranges and layout settings is applied for a printing job, we have undefined behavior because ranges are applied after layout in CUPS.

Reproduction
  1. Start a print job with a file consists of 8 pages
  2. Setup "1-2" page ranges
  3. Setup "2x2" layout
  4. Look at the result, it either prints pages 1, 2, 3, and 4 or prints all (depends on the current implementation)
Screenshots / Additional context

Write your own PDF generator.

Contributor guide

Open the contributing guide

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

No files, tests, or entry points are named. Start by tracing how print jobs handle page ranges and layout settings, then reproduce the eight-page case with range 1-2 and a 2x2 layout. Done should mean the generated PDF applies both settings deterministically without relying on CUPS ordering.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.