Add -chop-v / -chop-h documentation

This commit is contained in:
John Whitington 2024-02-05 15:41:40 +00:00
parent e57dac3e4c
commit 60a587fd4b
2 changed files with 15 additions and 0 deletions

Binary file not shown.

View File

@ -2752,6 +2752,10 @@ These two operations add content directly to the beginning or end of the page da
\vspace{1.5mm} \vspace{1.5mm}
\small\noindent\verb!cpdf -chop "<x> <y>" [-chop-columns] [-chop-rtl] [-chop-btt]!\\ \small\noindent\verb!cpdf -chop "<x> <y>" [-chop-columns] [-chop-rtl] [-chop-btt]!\\
\small\noindent\verb! in.pdf [<range>] -o out.pdf! \small\noindent\verb! in.pdf [<range>] -o out.pdf!
\vspace{1.5mm}
\small\noindent\verb!cpdf [-chop-h <y> | -chop-v <x>] [-chop-columns]!\\
\small\noindent\verb! in.pdf [<range>] -o out.pdf!
\end{framed} \end{framed}
\section{Inserting Blank Pages} \section{Inserting Blank Pages}
@ -2871,6 +2875,17 @@ The \texttt{-chop} operation cuts up a page into multiple pages, according to th
\noindent By default, the pieces are arranged in the output file row by row, and from left to right on each row. To alter this, add one or more of \texttt{-chop-columns}, \texttt{-chop-rtl} (right to left), and \texttt{-chop-btt} (bottom to top). \noindent By default, the pieces are arranged in the output file row by row, and from left to right on each row. To alter this, add one or more of \texttt{-chop-columns}, \texttt{-chop-rtl} (right to left), and \texttt{-chop-btt} (bottom to top).
As an alternative, pages can be chopped into two at a given position, horizontally with \texttt{-chop-h} or vertically with \texttt{-chop-v}:
\begin{framed}
\noindent\small\verb!cpdf -chop-h 400 in.pdf -o out.pdf!
\vspace{2.5mm}
\noindent Chop each page into two, top and bottom, at 400pt mark.
\end{framed}
\noindent To reverse the order of pages in the output, specify -chop-columns in addition.
\begin{cpdflib} \begin{cpdflib}
\clearpage \clearpage
\section*{C Interface} \section*{C Interface}