This commit is contained in:
John Whitington 2023-03-29 14:14:13 +01:00
parent b29c022a8a
commit 9cc6091571
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -4187,10 +4187,10 @@ To remove a dictionary entry:
\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 value, writing to \texttt{out.pdf}.
\end{framed} \end{framed}
To replace a dictionary entry: To replace a dictionary entry, give the replacement value in CPDFJSON format:
\begin{framed} \begin{framed}
\small\noindent\verb!cpdf -replace-dict-entry /One -replace-dict-entry-value "2"!\\ \small\noindent\verb!cpdf -replace-dict-entry /One -replace-dict-entry-value "\{I : 2\}"!\\
\small\noindent\verb! in.pdf -o out.pdf! \small\noindent\verb! in.pdf -o out.pdf!
\vspace{2.5mm} \vspace{2.5mm}
@ -4198,8 +4198,8 @@ To replace a dictionary entry:
\vspace{2.5mm} \vspace{2.5mm}
\small\noindent\verb!cpdf -replace-dict-entry /One -dict-entry-search "1"!\\ \small\noindent\verb!cpdf -replace-dict-entry /One -dict-entry-search "\{I : 1\}"!\\
\small\noindent\verb! -replace-dict-entry-value "2" in.pdf -o out.pdf! \small\noindent\verb! -replace-dict-entry-value "\{I : 2\}" in.pdf -o out.pdf!
\vspace{2.5mm} \vspace{2.5mm}
\noindent Remove 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 Remove 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}.