tavinus / pdfScale

Bash Script to Scale and Resize PDFs using Ghostscript
MIT License
246 stars 37 forks source link

Split PDF and Page range #11

Closed tavinus closed 3 months ago

tavinus commented 6 years ago

Working with pages

Implement option to "explode" a PDF into several PDFs (one per page).

Same functionality as my pdfSplit.sh script.
https://gist.github.com/tavinus/1a2ae53441b3fa725e93ec043b8b1112

Additionally, give the option for the user to specify a range of pages on scaling and resizing.

May also be interesting to have an option specific to range splitting,
that just splits the PDF and nothing else.

Options


These may have relevant info: https://www.grenadeco.com/tutorial/introduction-to-ghostscript/ https://stackoverflow.com/questions/4826485/ghostscript-pdf-total-pages/4829240

tavinus commented 3 months ago

Implemented

Gave up on using --firstPage / --lastPage and went for the Page Range route (which is more complete).

Any Operation can have page ranges and explode the output.