From b99e35e27fe649382b46e4ef7ea5780394bdabb1 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Fri, 18 Jun 2021 16:31:15 +0100 Subject: [PATCH] more --- cpdfmanual.pdf | Bin 256746 -> 256746 bytes cpdfmanual.tex | 139 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) diff --git a/cpdfmanual.pdf b/cpdfmanual.pdf index 76ead7a39105c8a1c063fb367e8d9d270722b0f1..0c6f65315f28a2a9eecb815c42b06b632f5e0ec2 100644 GIT binary patch delta 112 zcmaELmH*XM{)QID7N#xCcdoLU8Ce=zPJeinSq{S7&T@^plGEA3z{JVS(#71|#MRW$ j(#*us+|zv*u>4$ j+1bLv$kfQl%*oZr$i&#v%-F] -o out.pdf! \end{framed} +\begin{cpdflib} +\clearpage +\section*{C Interface} +\begin{small}\tt +\lstinputlisting{splits/c09} +\end{small} +\end{cpdflib} + + \chapter{Multipage Facilities}\pagestyle{fancy}\label{multipage}\label{chap:9} \begin{framed} \small\noindent\verb!cpdf -twoup-stack [-fast] in.pdf -o out.pdf! @@ -2022,6 +2087,15 @@ In all three of these operations, one may specify \texttt{-pad-with} providing a \noindent The \texttt{-pad-multiple-before n} operation adds the padding pages at the beginning of the file instead. +\begin{cpdflib} +\clearpage +\section*{C Interface} +\begin{small}\tt +\lstinputlisting{splits/c10} +\end{small} +\end{cpdflib} + + \chapter{Annotations}\label{chap:10} \begin{framed} \small\noindent\verb!cpdf -list-annotations in.pdf []! @@ -2070,6 +2144,16 @@ given page range. \vspace{2.5mm} \noindent Remove annotations from the first page of a file only. \end{framed} + +\begin{cpdflib} +\clearpage +\section*{C Interface} +\begin{small}\tt +\lstinputlisting{splits/c11} +\end{small} +\end{cpdflib} + + \chapter{Document Information and Metadata}\label{chap:11} \index{document information} \index{metadata} @@ -2379,6 +2463,14 @@ startvalue: 1 \end{verbatim} \end{framed}\pagestyle{empty}\thispagestyle{fancy} +\begin{cpdflib} +\clearpage +\section*{C Interface} +\begin{small}\tt +\lstinputlisting{splits/c12} +\end{small} +\end{cpdflib} + \chapter{File Attachments}\label{chap:12}\pagestyle{fancy} \index{attachments} \begin{framed} @@ -2441,6 +2533,14 @@ The \texttt{-dump-attachments} operation, when given a PDF file and a directory \verb! / ? < > \ : * | " ^ + =! \end{framed} +\begin{cpdflib} +\clearpage +\section*{C Interface} +\begin{small}\tt +\lstinputlisting{splits/c13} +\end{small} +\end{cpdflib} + \chapter{Working with Images}\label{chap:13} \begin{framed} @@ -2489,6 +2589,14 @@ Cpdf can extract the raster images to a given location. JPEG, JPEG2000 and JBIG2 To remove a particular image, find its name using \texttt{-image-resolution} with a sufficiently high resolution (so as to list all images), and then apply the \texttt{-draft} and \texttt{-draft-remove-only} operations from Section \ref{draft}. +\begin{cpdflib} +\clearpage +\section*{C Interface} +\begin{small}\tt +\lstinputlisting{splits/c14} +\end{small} +\end{cpdflib} + \pagestyle{fancy} \chapter{Fonts}\pagestyle{fancy}\label{chap:14} @@ -2600,6 +2708,14 @@ recommended when file size is the sole consideration. \label{listmisingfonts}\clearpage\pagestyle{empty} +\begin{cpdflib} +\clearpage +\section*{C Interface} +\begin{small}\tt +\lstinputlisting{splits/c15} +\end{small} +\end{cpdflib} + \chapter{PDF and JSON}\label{chap:15}\pagestyle{fancy}\index{JSON} {\small\begin{framed} \noindent\verb!cpdf in.pdf -output-json -o out.json!\\ @@ -2640,6 +2756,14 @@ Output PDF as JSON data. Each object is written under its object number. The obj \noindent The option \texttt{-output-json-no-stream-data} simply elides the stream data instead, leading to much smaller JSON files. +\begin{cpdflib} +\clearpage +\section*{C Interface} +\begin{small}\tt +\lstinputlisting{splits/c16} +\end{small} +\end{cpdflib} + \clearpage\pagestyle{empty} \chapter{Optional Content Groups}\label{chap:16}\pagestyle{fancy}\index{Optional Content Group} @@ -2687,6 +2811,14 @@ In a PDF file, optional content groups are used to group graphical elements toge \noindent Ensure that every optional content group appears in the order list. +\begin{cpdflib} +\clearpage +\section*{C Interface} +\begin{small}\tt +\lstinputlisting{splits/c16} +\end{small} +\end{cpdflib} + \clearpage\pagestyle{empty} \chapter{Miscellaneous}\label{chap:misc}\pagestyle{fancy} {\small\begin{framed} @@ -2882,6 +3014,13 @@ The \texttt{-remove-clipping} operation removes any clipping paths on given page \noindent Remove clipping paths in \texttt{in.pdf}, writing to \texttt{out.pdf}. \end{framed} +\begin{cpdflib} +\clearpage +\section*{C Interface} +\begin{small}\tt +\lstinputlisting{splits/c18} +\end{small} +\end{cpdflib} \appendix \chapter{Dates}\pagestyle{empty}