-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Added option to split PDF into multiple parts and merge into one PDF #841
Conversation
What's the difference between this and the one from |
For example, split a 10-page PDF horizontally and merge it into a 20-page PDF. (like 1x1+1x1=1x2+1x2) |
Would splitting it into sections and then merging it using the other feature be the same? |
Yes, it's the same Split Horizontally and merge: If not merged: |
What would be the use case for this if the merge pdf feature already exists? I might be misinterpreting what this feature does, but it seems to be the same feature to me. |
When using horizontal splitting, multiple PDF files will be generated. This function only adds an option to directly merge them into a single PDF file after splitting. The scenario is: in order to facilitate cropping after printing, the PDF exported by some systems will merge the document that should have been two pages into one page. This way you can fold it in half and cut it directly. However, for other processing needs, these PDF files need to be split horizontally and merged into one file. This feature also appears in other PDF tools. |
So this just simplifies a 2 step process into 1 step. I see what you mean now. |
src/main/java/stirling/software/SPDF/controller/api/SplitPdfBySectionsController.java
Outdated
Show resolved
Hide resolved
src/main/java/stirling/software/SPDF/controller/api/SplitPdfBySectionsController.java
Show resolved
Hide resolved
Thanks! |
Description
Added the option to merge into one PDF in the function of splitting a PDF into multiple parts to facilitate the work of splitting a single-page PDF in the middle and then merging it.
Closes #(issue_number)
Checklist:
Contributor License Agreement
By submitting this pull request, I acknowledge and agree that my contributions will be included in Stirling-PDF and that they can be relicensed in the future under the MPL 2.0 (Mozilla Public License Version 2.0) license.
(This does not change the general open-source nature of Stirling-PDF, simply moving from one license to another license)