-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add warning for out-of-bounds page range in pdfly cat command #58
Conversation
Hi @Zingzy This looks great, thank your for your contribution 👍 Could you just run |
Hello @Lucas-C, I made the necessary changes. 😄 |
Hello @Lucas-C any updates on this? |
I merged your MR! Thank you very much for your contribution @Zingzy 👍 |
## What's new ### New Features (ENH) - New `booklet` command to adjust offsets and lengths ([PR #77](#77)) - New `uncompress` command ([PR #75](#75)) - New `update-offsets` command to adjust offsets and lengths ([PR #15](#15)) - New `rm` command ([PR #59](#59)) - `metadata`: now also displaying CreationDate, Creator, Keywords & Subject ([PR #73](#73)) - Add warning for out-of-bounds page range in pdfly `cat` command ([PR #58](#58)) ### Bug Fixes (BUG) - `2-up` command, that only showed one page per sheet, on the left side, with blank space on the right ([PR #78](#78)) [Full Changelog](0.3.3...0.4.0)
This has been released in version |
PR Description
This PR addresses issue #33 where users attempting to use the
pdfly cat
command to extract a range of pages outside the number of pages in the PDF document do not receive a warning. The following changes have been made:stderr
if it is.pytest.skip
decorator from the test case: Enabled thetest_cat_subset_warn_on_missing_pages
test to verify the warning message instderr
.Testing
test_cat_subset_warn_on_missing_pages
test passes, confirming that the warning is printed to stderr when the page range is out of bounds.