Skip to content
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

Export each N pages to a file #723

Open
Matth7878 opened this issue Sep 20, 2022 · 4 comments
Open

Export each N pages to a file #723

Matth7878 opened this issue Sep 20, 2022 · 4 comments
Labels
feature Request for a new feature PRs welcome The person setting this label (or assigned to this Issue) is happy to give guidance

Comments

@Matth7878
Copy link

Right now you can export each pages of a pdf to create multiple pdf files. But you're stuck with only one page per pdf.

Would it be possible to allow user to set how many pages he wants in each created files? It would really help when you need to create a files for every 2 pages for instance.

@dreua dreua added the feature Request for a new feature label Sep 20, 2022
@dreua dreua changed the title Feature to improve export each pages to files Export each N pages to a file Sep 20, 2022
@dreua
Copy link
Member

dreua commented Sep 20, 2022

I'm sure one can easily automate that with a few lines of Python and pikepdf. (It might even be possible to do that with the CLI of qpdf, pdftk or such.)
I'm not sure we will implement that in PDF Arranger because it sounds like a rare use case to me, which needs time to implement and maintain and will clutter the UI even more.

As usual with feature requests like this, I'd suggest we give this 3 weeks. If nothing productive comes up it should be closed and tagged stale feature.

@dreua
Copy link
Member

dreua commented Sep 20, 2022

Qpdf can do this very easily, see: https://stackoverflow.com/a/64915669/4529404
This should work on all platforms, just omit the .exe if you are on Linux / Mac 😉

@Matth7878
Copy link
Author

One could say that all others features like rotation can easily be done with other tools, IMHO. 😕

About clutter I believe UI for exports would be better without doing too much. Instead of a menu with 3 subs menu acting as a way to choose what option for your export you want to use there could be only one entry which would open a custom dialog to let user set his options :

  • selection or all pages,
  • one file or multiple files,
  • related to this FR : how many pages per file
  • potentially exposing other used parameters

I understand if it's too much to maintain. For that I can't argue and my ability to code is way too low to implement it myself. 😕

For other people looking, beside command line tools suggested in previous comment, you can also use PDFSam to have something with an UI. Pdf Arranger is better but I keep PDFSam installed for this feature.

@jeromerobert
Copy link
Member

That's easy, let's do it.

@jeromerobert jeromerobert added this to the 1.10 milestone Sep 24, 2022
@jeromerobert jeromerobert removed this from the 1.10 milestone Jun 6, 2023
@jeromerobert jeromerobert added the PRs welcome The person setting this label (or assigned to this Issue) is happy to give guidance label Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request for a new feature PRs welcome The person setting this label (or assigned to this Issue) is happy to give guidance
Projects
None yet
Development

No branches or pull requests

3 participants