one-zero-eight / one-zero-eight/printers
PDF rebuild
Open
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
- Start a print job with a file consists of 8 pages
- Setup "1-2" page ranges
- Setup "2x2" layout
- 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
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
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