Show HN: Split Pdfs by Page or File Size (pdfsplitter.ifelse.io) 1 points by markthethomas 1y ago ↗ HN Just a little utility project I put together; using Go, JS
[–] reify 1y ago ↗ I use qpdf for this:to keep only pages 1-9 and pages 26 to the last page of input.pdf and save them to output.pdf.qpdf input.pdf --pages . 1-9,26-z -- output.pdfkeep the first page and pages 100-292qpdf input.pdf --pages . 1-1,100-292 -- output.pdfThe page range is a set of numbers separated by commas, ranges of numbers separated dashes, or combinations of those.The character "z" represents the last page.
1 comment
[ 12.0 ms ] story [ 174 ms ] threadto keep only pages 1-9 and pages 26 to the last page of input.pdf and save them to output.pdf.
qpdf input.pdf --pages . 1-9,26-z -- output.pdf
keep the first page and pages 100-292
qpdf input.pdf --pages . 1-1,100-292 -- output.pdf
The page range is a set of numbers separated by commas, ranges of numbers separated dashes, or combinations of those.
The character "z" represents the last page.