@unni-craftsman/pdf-split
v1.0.0
Published
CLI tool for splitting PDF files by page range
Maintainers
Readme
pdf-split
A simple CLI tool for extracting page ranges from PDF files.
Installation
npm install -g @unni-craftsman/pdf-split
# or use with bunx/npx
bunx @unni-craftsman/pdf-split <pdf-file> <page-range>Usage
pdf-split <pdf-file> <page-range> [output-file]Examples
Extract a single page:
pdf-split document.pdf 5
# Output: document_p5.pdfExtract a page range:
pdf-split document.pdf 10-20
# Output: document_p10-20.pdfSpecify custom output file:
pdf-split document.pdf 1-10 output.pdf
# Output: output.pdfOptions
<pdf-file>- Path to the input PDF file<page-range>- Page number (e.g.,5) or range (e.g.,10-20)[output-file]- Optional custom output file path
License
MIT
