Split pdf by sections improvement
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
- [x] I have read the Contribution Guidelines
- [x] I have read the Stirling-PDF Developer Guide (if applicable)
- [x] I have read the How to add new languages to Stirling-PDF (if applicable)
- [x] I have performed a self-review of my own code
- [x] My changes generate no new warnings
Documentation
- [x] I have updated relevant docs on Stirling-PDF's doc repo (if functionality has heavily changed)
- [x] I have read the section Add New Translation Tags (for new translation tags only)
UI Changes (if applicable)
- [x] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR)
Testing (if applicable)
- [x] I have tested my changes locally. Refer to the Testing Guide for more details.
🚀 Translation Verification Summary
🔄 Reference Branch: pr-branch-messages_en_GB.properties
📃 File Check: messages_en_GB.properties
- Test Status: ✅ Passed
- Test Status: ✅ Passed
- Test Status: ✅ Passed
✅ Overall Check Status: Success
Thanks @PingLin8888 for your help in keeping the translations up to date.
Can we hide pages to split section if its not in custom mode?
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.
/deploypr
Final change, can you please make the default the behaviour that was previously default (split all)
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?
Good catch! Yes
/deploypr