next up previous contents index
Next: Units Up: Basic Usage Previous: Standard Input and Standard   Contents   Index

Joining several commmands with AND

The keyword AND can be used to string together several commands in one. The advantage compared to using pipes is that the file doesn't need to be repeatedly parsed and written out, saving time.

To use AND, simply leave off the output specifier (e.g -o) of one command, and the input specifier (e.g filename). For instance:


\begin{framed}
\small\verb!cpdf -merge in.pdf in2.pdf AND -add-text ''Label''!
...
... both pages, append \texttt{in3.pdf} and write to \texttt{out.pdf}.
\end{framed}



root 2008-12-01