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 pages and save and delete pages #979

Open
petaflot opened this issue Sep 23, 2023 · 1 comment
Open

Export pages and save and delete pages #979

petaflot opened this issue Sep 23, 2023 · 1 comment
Labels
feature Request for a new feature

Comments

@petaflot
Copy link

Describe the feature request

Splitting PDFs made easier and less error-prone

To Reproduce

Steps to reproduce the behavior:

  1. open a multi-page PDF
  2. select a number of pages
  3. Ctrl+E, export dialog opens
  4. chose dir (filename with auto-increment is set properly, following Automatic document numbering on export #782), hit OK
  5. delete exported pages
  6. start with 2. again until no more pages in document
  7. close (and save or don't save based on the workflow)

Expected behavior

  1. open a multi-page PDF
  2. select a number of pages
  3. Ctrl+E, export dialog opens
  4. select "automatically delete exported pages from document"
  5. select "don't ask for location again unless the destination filename already exists"
  6. chose dir (filename with auto-increment is set properly, following Automatic document numbering on export #782), hit OK
  7. NO NEED to delete exported pages
  8. select more pages
  9. Ctrl+E (or Ctrl+Shift+E to show the dialog again), NO NEED to confirm filename NOR delete exported pages
  10. loop at 6
  11. automatically close doc when all pages have been exported (optional but would be nice)

Input files

any file with many pages

System and Versions

  • PDF Arranger-1.9.2
  • pikepdf-8.4.1
  • libqpdf-11.5.0

Context Info

I use a bash script like so:

for pdf in ~/pdfs_to_split/*.pdf
do
        echo "`date` processing $pdf"
        pdfarranger $pdf
        mv -v $pdf ~/pdfs_to_split/_done/${whoami}/${today}/
        echo "`date` ${whoami} finished splitting ${pdf}" >> ~/pdfs_to_split/_work.log
done
@petaflot
Copy link
Author

petaflot commented Sep 24, 2023

if it is too much of a mess to add extra checkboxes in the save dialog, then use some command-line arguments : for example:

  • if --files_out is set, don't prompt for save confirmation: just save
  • if --always-overwrite is set, overwrite without confirmation, otherwise warn and show save dialog (in turn, this allows incrementing the automatic document numbering counter)
  • if --auto-delete-after-export is set, auto-delete exported pages

see also #981 ; this is part of the same workflow.

@dreua dreua changed the title feature request: export pages and save and delete pages Export pages and save and delete pages Oct 9, 2023
@dreua dreua added the feature Request for a new feature label Oct 9, 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
Projects
None yet
Development

No branches or pull requests

2 participants