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:

  1. pdfcpu extract -mode page book.pdf .
  2. extracting pages from book.pdf into . ...
  3. writing ./book_1.pdf ...
  4. writing ./book_7.pdf ...
  5. writing ./book_11.pdf ...
  6. writing ./book_13.pdf ...
  7. writing ./book_16.pdf ...

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

  1. pdfcpu extract -mode page -pages 5-10 book.pdf out
  2. pageSelection: 5-10
  3. extracting pages from book.pdf into out ...
  4. writing out/book_6.pdf ...
  5. writing out/book_7.pdf ...
  6. writing out/book_8.pdf ...
  7. writing out/book_9.pdf ...
  8. writing out/book_10.pdf ...
  9. writing out/book_5.pdf ...