pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

Extract Pages

This command is similar to split with a default span of 1.

Examples

Extract all pages from book.pdf into single page PDFs in the current directory:

$ pdfcpu extract -mode page book.pdf .
extracting pages from book.pdf into . ...
writing ./book_1.pdf ...
writing ./book_7.pdf ...
writing ./book_11.pdf ...
writing ./book_13.pdf ...
writing ./book_16.pdf ...


Extracting pages 5-10 from book.pdf into out:

$ pdfcpu extract -mode page -pages 5-10 book.pdf out
pageSelection: 5-10
extracting pages from book.pdf into out ...
writing out/book_6.pdf ...
writing out/book_7.pdf ...
writing out/book_8.pdf ...
writing out/book_9.pdf ...
writing out/book_10.pdf ...
writing out/book_5.pdf ...