next up previous contents index
Next: Splitting on Bookmarks Up: Merging and Splitting Previous: Merging   Contents   Index


Splitting

The -split operation splits a PDF file into a number of parts which are written to file, their names being generated from a format. The optional -chunk option allows the number of pages written to each output file to be set. The range of pages taken can be selected in the usual fashion.
\begin{framed}\small
\verb!cpdf -split a.pdf -o out%%%.pdf!
\par
\vspace{2.5mm}...
...ages in each
file. The directory (folder) \texttt{dir} must exist.
\end{framed}
If the output format does not provide enough numbers for the files generated, the result is unspecified.

The following format operators may be used:


%, %%, %%% etc. Sequence number padded to the number of percent signs
@F Original filename without extension
@N Sequence number without padding zeroes
@S Start page of this chunk
@E End page of this chunk



root 2008-12-01