Chapter 19

This commit is contained in:
John Whitington 2023-06-20 16:58:11 +01:00
parent 2ca9bec778
commit 648b9dd1a1
2 changed files with 7 additions and 4 deletions

Binary file not shown.

View File

@ -4754,6 +4754,8 @@ function removes that unneeded data.
\small\noindent\verb!cpdf -clean in.pdf -o out.pdf! \small\noindent\verb!cpdf -clean in.pdf -o out.pdf!
\end{framed} \end{framed}
\noindent NB: This operation is deprecated. This work is now done by default upon writing any file.
\section{Change PDF Version Number} \section{Change PDF Version Number}
\index{version number} \index{version number}
\label{setversion} \label{setversion}
@ -4827,10 +4829,11 @@ This is for editing data within the PDF's internal representation. Use with caut
\vspace{2.5mm} \vspace{2.5mm}
\small\noindent\verb!cpdf -remove-dict-entry /One -dict-entry-search "1" in.pdf -o out.pdf! \small\noindent\verb!cpdf -remove-dict-entry /One -dict-entry-search "\{I : 1\}"!\\
\small\noindent\verb! in.pdf -o out.pdf!
\vspace{2.5mm} \vspace{2.5mm}
\noindent Replace the entry for \texttt{/One} in every dictionary \texttt{in.pdf} if the key's value is the given value, writing to \texttt{out.pdf}. \noindent Replace the entry for \texttt{/One} in every dictionary \texttt{in.pdf} if the key's value is the given CPDFJSON value, writing to \texttt{out.pdf}.
\end{framed} \end{framed}
\noindent To replace a dictionary entry, give the replacement value in CPDFJSON format: \noindent To replace a dictionary entry, give the replacement value in CPDFJSON format: