mozilla / mozilla/pdf.js

[Feature]: Default to custom page range when sidebar selection exists

Open
#21,958 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature requires-feedback-from-ux-ui viewer
Dominant language
JavaScript
Stars
53.9k
Forks
10.7k
Avg merge
18h 38m
Merged PRs (30d)
130

Description

Is the feature relevant to the Firefox PDF Viewer?

Yes

Feature description

If there is a sidebar page selection (in the following screenshot, pages 1 and 3), I would expect the print "Pages" option to match this sidebar selection, i.e., having "Pages" set to "Custom" and filled with "1,3" instead of the current default of "All".

Image Image
Other PDF viewers

No response

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

Start by tracing how the PDF viewer's print dialog initializes the Pages option and how the sidebar exposes selected page numbers. Reproduce a selection such as pages 1 and 3, then verify that the dialog defaults to Custom with "1,3" and that printing uses the selected range.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.