Split

Generate a set of PDF files for inFile in outDir according to given span value. Also check out the extract pages command which gives you similar functionality. Have a look at some examples.

Usage

  1. pdfcpu split [-v(erbose)|vv] [-upw userpw] [-opw ownerpw] inFile outDir [span]

Flags

flagdescriptionrequired
verboseturn on loggingno
vvverbose loggingno
upwuser passwordno
opwowner passwordno

Arguments

namedescriptionrequireddefault
inFilePDF input fileyes
outDiroutput directoryyes
spansplit span in pagesno1

Restrictions

The following PDF elements are not carried over into the output files:

  • Annotations
  • Outlines
  • Struct Trees
  • Forms

Examples

Split up a PDF input file into single page PDF files in out:

  1. pdfcpu split test.pdf out

Split up a PDF input file into individual PDF files for every sheet of paper. Every PDF output file in out spans 2 pages of the original:

  1. pdfcpu split test.pdf out 2