diff --git a/cpdfcommand.ml b/cpdfcommand.ml index f83dd48..6e9adbe 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -2199,12 +2199,12 @@ and specs = ("-copy-font-page", Arg.Int setfontpage, " Set the page a copied font is drawn from"); - ("-remove-fonts", - Arg.Unit (setop RemoveFonts), - " Remove embedded fonts"); ("-copy-font-name", Arg.String setcopyfontname, " Set the name of the font to copy"); + ("-remove-fonts", + Arg.Unit (setop RemoveFonts), + " Remove embedded fonts"); ("-missing-fonts", Arg.Unit (setop MissingFonts), " List missing fonts"); diff --git a/cpdfmanual.pdf b/cpdfmanual.pdf index 12f3313..c63e1af 100644 Binary files a/cpdfmanual.pdf and b/cpdfmanual.pdf differ diff --git a/cpdfmanual.tex b/cpdfmanual.tex index 01dd1f1..e1951e7 100644 --- a/cpdfmanual.tex +++ b/cpdfmanual.tex @@ -2289,6 +2289,9 @@ recommended when file size is the sole consideration. {\small\begin{framed} \noindent\verb!cpdf -draft [-boxes] [-draft-remove-only ] in.pdf [] -o out.pdf! + \vspace{1.5mm} + \noindent\verb!cpdf -remove-all-text in.pdf [] -o out.pdf! + \vspace{1.5mm} \noindent\verb!cpdf -blacktext in.pdf [] -o out.pdf! @@ -2341,6 +2344,12 @@ objects or clipped in the original). For example: \small\verb!cpdf -draft -boxes -draft-remove-only "/Im1" in.pdf 7 -o out.pdf! \end{framed} +\noindent To remove text instead of images, use the \texttt{-remove-all-text} operation: + + \begin{framed} + \small\verb!cpdf -remove-all-text in.pdf -o out.pdf! + \end{framed} + \section{Blackening Text, Lines and Fills} \index{blacken!text} Sometimes PDF output from an application (for instance, a web browser) has