Further documentation for v2.7
This commit is contained in:
parent
4f6c9ef68b
commit
e89eac7305
BIN
cpdfmanual.pdf
BIN
cpdfmanual.pdf
Binary file not shown.
|
@ -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 [<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}
|
||||
\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>@
|
||||
\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?
|
||||
|
|
Loading…
Reference in New Issue