diff --git a/cpdfmanual.pdf b/cpdfmanual.pdf index 5f3ac87..edbcd66 100644 Binary files a/cpdfmanual.pdf and b/cpdfmanual.pdf differ diff --git a/cpdfmanual.tex b/cpdfmanual.tex index e69c692..fbff8d5 100644 --- a/cpdfmanual.tex +++ b/cpdfmanual.tex @@ -3532,7 +3532,7 @@ The \texttt{-dump-attachments} operation, when given a PDF file and a directory \chapter{Working with Images}\label{chap:13} \begin{framed} \noindent\small\verb!cpdf -extract-images in.pdf [] [-im ] [-p2p ]! -\noindent\small\verb! [-dedup | -dedup-perpage] -o ! +\noindent\small\verb! [-dedup | -dedup-perpage] [-raw] -o ! \vspace{1.5mm} \noindent\small\verb!cpdf -image-resolution in.pdf []! @@ -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 @ \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} \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. -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} \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} -\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} \noindent\small\verb?cpdf -jpeg image.jpg -o out.pdf?