next up previous contents index
Next: Input Ranges Up: Basic Usage Previous: Basic Usage   Contents   Index

Input and Output Files

The typical pattern for usage is
\begin{framed}
\small\verb!cpdf [<operation>] <input file(s)> -o <output file>!
\end{framed}
and the simplest concrete example, assuming the existence of a file in.pdf is:
\begin{framed}
\small\verb!cpdf in.pdf -o out.pdf!
\end{framed}
which copies in.pdf to out.pdf. The input and output may be the same file. Of course, we should like to do more interesting things to the PDF file than that!

Files on the command line are distinguished from other input by their containing a period. If an input file does not contain a period, it should be preceded by -i. For example:


\begin{framed}
\small\verb!cpdf -i in -o out.pdf!
\end{framed}
A whole directory of files may be added by using the -idir option:
\begin{framed}
\small\verb!cpdf -idir myfiles -o out.pdf!
\end{framed}
The files in the directory myfiles are considered in alphabetical order. They must all be PDF files. If the names of the files are numeric, leading zeroes will be required for the order to be correct (e.g 001.pdf, 002.pdf etc).



root 2008-12-01