Further documentation for v2.7

This commit is contained in:
John Whitington 2024-01-26 16:35:30 +00:00
parent 4f6c9ef68b
commit e89eac7305
2 changed files with 7 additions and 5 deletions

Binary file not shown.

View File

@ -3532,7 +3532,7 @@ The \texttt{-dump-attachments} operation, when given a PDF file and a directory
\chapter{Working with Images}\label{chap:13} \chapter{Working with Images}\label{chap:13}
\begin{framed} \begin{framed}
\noindent\small\verb!cpdf -extract-images in.pdf [<range>] [-im <path>] [-p2p <path>]! \noindent\small\verb!cpdf -extract-images in.pdf [<range>] [-im <path>] [-p2p <path>]!
\noindent\small\verb! [-dedup | -dedup-perpage] -o <path>! \noindent\small\verb! [-dedup | -dedup-perpage] [-raw] -o <path>!
\vspace{1.5mm} \vspace{1.5mm}
\noindent\small\verb!cpdf -image-resolution <minimum resolution> in.pdf [<range>]! \noindent\small\verb!cpdf -image-resolution <minimum resolution> in.pdf [<range>]!
@ -3547,7 +3547,9 @@ Cpdf can extract the raster images to a given location. JPEG and JPEG2000 images
\noindent\small\verb@ [-dedup | -dedup-perpage] -o <path>@ \noindent\small\verb@ [-dedup | -dedup-perpage] -o <path>@
\end{framed} \end{framed}
\noindent The \texttt{-im} or \texttt{-p2p} option is used to give the path to the external tool, one of which must be installed. The output specifer, e.g \verb!-o output/%%%! gives the number format for numbering the images. Output files are named serially from 0, and include the page number too. For example, output files might be called \texttt{output/000-p1.jpg}, \texttt{output/001-p1.png}, \texttt{output/002-p3.jpg} etc. Here is an example invocation: \noindent The \texttt{-im} or \texttt{-p2p} option is used to give the path to the external tool, one of which must be installed (unless \texttt{-raw} is added, which outputs instead just JPEG or plain \texttt{.pnm} files).
The output specifier, e.g \verb!-o output/%%%! gives the number format for numbering the images. Output files are named serially from 0, and include the page number too. For example, output files might be called \texttt{output/000-p1.jpg}, \texttt{output/001-p1.png}, \texttt{output/002-p3.jpg} etc. Here is an example invocation:
\begin{framed} \begin{framed}
\noindent\small\verb@cpdf -extract-images in.pdf -im magick -o output/%%%@ \noindent\small\verb@cpdf -extract-images in.pdf -im magick -o output/%%%@
@ -4117,14 +4119,14 @@ A basic text to PDF convertor is included in \texttt{cpdf}. It takes a UTF8 text
Simple facilities for making PDFs from PNG and JPEG images are included in \texttt{cpdf}. The resulting file can be written out, or used for further operations. Simple facilities for making PDFs from PNG and JPEG images are included in \texttt{cpdf}. The resulting file can be written out, or used for further operations.
For PNG files, the file must be 24bit RGB with no transparency and no interlacing. For PNG files, the file must be 24bit RGB with no transparency and no interlacing:
\begin{framed} \begin{framed}
\noindent\small\verb?cpdf -png image.png -o out.pdf?\\ \noindent\small\verb?cpdf -png image.png -o out.pdf?\\
\noindent\small\verb?cpdf -png image.png AND -add-text "My Image" -o out.pdf? \noindent\small\verb?cpdf -image.png AND -add-text "My Image" -o out.pdf?
\end{framed} \end{framed}
\noindent Almost any JPEG file may be used: \noindent Notice that the \texttt{-png} can be omitted if your file has a standard file extension. Almost any JPEG file may be used:
\begin{framed} \begin{framed}
\noindent\small\verb?cpdf -jpeg image.jpg -o out.pdf? \noindent\small\verb?cpdf -jpeg image.jpg -o out.pdf?