From digital-printing
Remove specified pages from a PDF — single pages, ranges, or "every blank page". Triggers on phrases like "remove pages 5-7 from this PDF", "delete the last page", "drop the cover page", "strip blank pages".
npx claudepluginhub danielrosehill/claude-code-plugins --plugin digital-printingThis skill uses the workspace's default tool permissions.
Produce a new PDF with the specified pages removed.
Conducts multi-round deep research on GitHub repos via API and web searches, generating markdown reports with executive summaries, timelines, metrics, and Mermaid diagrams.
Share bugs, ideas, or general feedback.
Produce a new PDF with the specified pages removed.
55-71,3,5,71,3-5,12,20-endblank (auto-detect blank pages), last, first<input>-trimmed.pdf.qpdf is the cleanest option — it supports inverse selection natively. pdftk and mutool are alternatives.
qpdf --empty --pages input.pdf 1-4,6-z -- output.pdf
The trick: qpdf can't directly remove pages, but it can select the pages you want to keep. Compute the inverse of the user's removal list against the page count.
pdfinfo input.pdf | awk '/^Pages:/ {print $2}'
For blank mode, render each page to a low-res PNG and check whether the image is essentially uniform white:
gs -sDEVICE=png16m -r50 -o /tmp/p%d.png input.pdf
# then for each PNG, use ImageMagick: identify -format "%[mean]" /tmp/p1.png
# values close to 65535 (16-bit max) ≈ blank
pdfinfo output.pdf | grep Pages and confirm new count = old - removed.Trimmed PDF at the requested path. Original is preserved.