py-pdf / py-pdf/pdfly

1-based ranges support

Open
#191 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement hacktoberfest up-for-grabs usability
Dominant language
Python
Stars
571
Forks
50
PR merge metrics
No merged PRs in 30d

Description

Please explain your intent
Provide a better UX for pdfly cat.

Describe the solution you'd like
Use 1-based ranges, not 0-based.
Modern pdf viewer number pages from 1.

Additional context

Even pdfly cat --help shows that something is indeed wrong with the current approach:

 Page range expression examples:
     ...
     22    just the 23rd page.          :-1   all but the last page
     ...
     5:    from the sixth page onward.  -3:-1 third & second to last.

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 at the pdfly cat entry point and run pdfly cat --help to understand the current range expressions and examples. Trace where page ranges are interpreted, then update the behavior and help text so page numbering is 1-based, and verify the documented examples match the resulting selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.