Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

Split pdf by sections improvement

Open PingLin8888 opened this issue 4 months ago • 8 comments

What was changed

  • Implemented new split modes in the "Split PDF by Sections" tool.

  • Added support for predefined split presets:

    • Split all except first and last
    • Split all except first
    • Split all except last
    • Split all
  • Added a custom split mode with an input field for comma-separated page numbers (e.g., 2,4), allowing users to specify exactly which pages to split.

Why the change was made

  • This change improves the flexibility and usability of the split tool.
  • It covers a common use case: skipping the cover and back pages when splitting a document.

Closes #4072


Checklist

General

Documentation

UI Changes (if applicable)

  • [x] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) image

Testing (if applicable)

  • [x] I have tested my changes locally. Refer to the Testing Guide for more details.

PingLin8888 avatar Aug 04 '25 13:08 PingLin8888

🚀 Translation Verification Summary

🔄 Reference Branch: pr-branch-messages_en_GB.properties

📃 File Check: messages_en_GB.properties

  1. Test Status: ✅ Passed
  2. Test Status: ✅ Passed
  3. Test Status: ✅ Passed

✅ Overall Check Status: Success

Thanks @PingLin8888 for your help in keeping the translations up to date.

stirlingbot[bot] avatar Aug 04 '25 13:08 stirlingbot[bot]

Can we hide pages to split section if its not in custom mode?

Frooodle avatar Aug 04 '25 15:08 Frooodle

Can we hide pages to split section if its not in custom mode?

Sure! That makes total sense — I’ll update it so the section is only visible in Custom mode.

PingLin8888 avatar Aug 04 '25 15:08 PingLin8888

/deploypr

Frooodle avatar Aug 08 '25 11:08 Frooodle

Final change, can you please make the default the behaviour that was previously default (split all)

Frooodle avatar Aug 08 '25 12:08 Frooodle

Final change, can you please make the default the behaviour that was previously default (split all)

Hi, sure! Also, I was wondering if you would like to hide the page input field in non-custom mode on https://stirlingpdf.io/pdf-organizer as well?

PingLin8888 avatar Aug 08 '25 13:08 PingLin8888

Good catch! Yes

Frooodle avatar Aug 08 '25 13:08 Frooodle

/deploypr

ConnorYoh avatar Sep 29 '25 14:09 ConnorYoh