This commit is contained in:
John Whitington 2021-12-30 20:03:09 +00:00
parent b8377af5e2
commit 27394400c2
2 changed files with 19 additions and 17 deletions

Binary file not shown.

View File

@ -82,7 +82,7 @@ Excel are registered trademarks of Microsoft Corporation.
A sampling of just a few of the facilities provided by the Coherent PDF Command Line Tools. A sampling of just a few of the facilities provided by the Coherent PDF Command Line Tools.
\section*{\hyperref[chap:1]{Basic Usage}} \section*{\hyperref[chap:1]{Chapter 1: Basic Usage}}
\begin{framed}\noindent\texttt{cpdf in.pdf 1-3,6 -o out.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf in.pdf 1-3,6 -o out.pdf}\end{framed}
@ -101,7 +101,7 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Read \texttt{control.txt} and use its contents as the command line arguments for \texttt{cpdf}. \noindent Read \texttt{control.txt} and use its contents as the command line arguments for \texttt{cpdf}.
\section*{\hyperref[chap:2]{Merging and Splitting}} \section*{\hyperref[chap:2]{Chapter 2: Merging and Splitting}}
\begin{framed}\noindent\texttt{cpdf -merge in.pdf in2.pdf -o out.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -merge in.pdf in2.pdf -o out.pdf}\end{framed}
@ -115,7 +115,7 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Split \texttt{in.pdf} on bookmark boundaries, writing each to a file whose name is the bookmark label. \noindent Split \texttt{in.pdf} on bookmark boundaries, writing each to a file whose name is the bookmark label.
\section*{\hyperref[chap:3]{Pages}} \section*{\hyperref[chap:3]{Chapter 3: Pages}}
\begin{framed}\noindent\texttt{cpdf -scale-page "2 2" in.pdf -o out.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -scale-page "2 2" in.pdf -o out.pdf}\end{framed}
@ -138,7 +138,7 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Crop the pages in \texttt{in.pdf} to a 600 pts by 400 pts rectangle. \noindent Crop the pages in \texttt{in.pdf} to a 600 pts by 400 pts rectangle.
\section*{\hyperref[chap:4]{Encryption and Decryption}} \section*{\hyperref[chap:4]{Chapter 4: Encryption and Decryption}}
\begin{framed}\noindent\texttt{cpdf -encrypt 128bit fred joe in.pdf -o out.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -encrypt 128bit fred joe in.pdf -o out.pdf}\end{framed}
@ -149,7 +149,7 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Decrypt \texttt{in.pdf} using the owner password, writing to \texttt{out.pdf}. \noindent Decrypt \texttt{in.pdf} using the owner password, writing to \texttt{out.pdf}.
\section*{\hyperref[chap:5]{Compression}} \section*{\hyperref[chap:5]{Chapter 5: Compression}}
\begin{framed}\noindent\texttt{cpdf -compress in.pdf -o out.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -compress in.pdf -o out.pdf}\end{framed}
@ -164,7 +164,7 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Squeeze \texttt{in.pdf}, writing to \texttt{out.pdf}. Squeezing rearranges the structure of the PDF file to save space. \noindent Squeeze \texttt{in.pdf}, writing to \texttt{out.pdf}. Squeezing rearranges the structure of the PDF file to save space.
\section*{\hyperref[chap:6]{Bookmarks}} \section*{\hyperref[chap:6]{Chapter 6: Bookmarks}}
\begin{framed}\noindent\texttt{cpdf -list-bookmarks in.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -list-bookmarks in.pdf}\end{framed}
@ -175,13 +175,13 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Add bookmarks in the same form from a prepared file \texttt{bookmarks.txt} to \texttt{in.pdf}, writing to \texttt{out.pdf}. \noindent Add bookmarks in the same form from a prepared file \texttt{bookmarks.txt} to \texttt{in.pdf}, writing to \texttt{out.pdf}.
\section*{\hyperref[chap:7]{Presentations}} \section*{\hyperref[chap:7]{Chapter 7: Presentations}}
\begin{framed}\noindent\texttt{cpdf -presentation in.pdf 2-end -trans Split -duration 10\\\phantom{\ \ \ \ } -o out.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -presentation in.pdf 2-end -trans Split -duration 10\\\phantom{\ \ \ \ } -o out.pdf}\end{framed}
\noindent Use the Split style to build a presentation from the PDF \texttt{in.pdf}, each slide staying 10 seconds on screen unless manually advanced. The first page, being a title does not move on automatically, and has no transition effect. \noindent Use the Split style to build a presentation from the PDF \texttt{in.pdf}, each slide staying 10 seconds on screen unless manually advanced. The first page, being a title does not move on automatically, and has no transition effect.
\section*{\hyperref[chap:8]{Logos, Watermarks and Stamps}} \section*{\hyperref[chap:8]{Chapter 8: Logos, Watermarks and Stamps}}
\begin{framed}\noindent\texttt{cpdf -stamp-on watermark.pdf in.pdf -o out.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -stamp-on watermark.pdf in.pdf -o out.pdf}\end{framed}
@ -191,7 +191,7 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Add a page number and date to all the pages in \texttt{in.pdf} using the Courier font, writing to \texttt{out.pdf}. \noindent Add a page number and date to all the pages in \texttt{in.pdf} using the Courier font, writing to \texttt{out.pdf}.
\section*{\hyperref[chap:9]{Multipage Facilities}} \section*{\hyperref[chap:9]{Chapter 9: Multipage Facilities}}
\begin{framed}\noindent\texttt{cpdf -twoup-stack in.pdf -o out.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -twoup-stack in.pdf -o out.pdf}\end{framed}
@ -201,7 +201,7 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Add extra blank pages after pages one, three and four of a document. \noindent Add extra blank pages after pages one, three and four of a document.
\section*{\hyperref[chap:10]{Annotations}} \section*{\hyperref[chap:10]{Chapter 10: Annotations}}
\begin{framed}\noindent\texttt{cpdf -list-annotations in.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -list-annotations in.pdf}\end{framed}
@ -211,7 +211,7 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Copy the annotations from \texttt{from.pdf} to \texttt{in.pdf}, writing to \texttt{out.pdf}. \noindent Copy the annotations from \texttt{from.pdf} to \texttt{in.pdf}, writing to \texttt{out.pdf}.
\section*{\hyperref[chap:11]{Document Information and Metadata}} \section*{\hyperref[chap:11]{Chapter 11: Document Information and Metadata}}
\begin{framed}\noindent\texttt{cpdf -set-title "The New Title" in.pdf -o out.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -set-title "The New Title" in.pdf -o out.pdf}\end{framed}
@ -233,7 +233,7 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Set the document \texttt{in.pdf} to open in PDF Viewer in full screen mode, putting the result in \texttt{out.pdf}. \noindent Set the document \texttt{in.pdf} to open in PDF Viewer in full screen mode, putting the result in \texttt{out.pdf}.
\section*{\hyperref[chap:12]{File Attachments}} \section*{\hyperref[chap:12]{Chapter 12: File Attachments}}
\begin{framed}\noindent\texttt{cpdf -attach-file sheet.xls in.pdf -o out.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -attach-file sheet.xls in.pdf -o out.pdf}\end{framed}
@ -243,7 +243,7 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Remove any attachments from \texttt{in.pdf}, writing to \texttt{out.pdf}. \noindent Remove any attachments from \texttt{in.pdf}, writing to \texttt{out.pdf}.
\section*{\hyperref[chap:13]{Working with Images}} \section*{\hyperref[chap:13]{Chapter 13: Working with Images}}
\begin{framed}\noindent\texttt{cpdf -image-resolution 600 in.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -image-resolution 600 in.pdf}\end{framed}
@ -254,7 +254,7 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Extract images from \texttt{in.pdf} to directory \texttt{output} (with the help of imagemagick). \noindent Extract images from \texttt{in.pdf} to directory \texttt{output} (with the help of imagemagick).
\section*{\hyperref[chap:14]{Fonts}} \section*{\hyperref[chap:14]{Chapter 14: Fonts}}
\begin{framed}\noindent\texttt{cpdf -list-fonts in.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -list-fonts in.pdf}\end{framed}
@ -264,13 +264,13 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Embed missing fonts (with the help of Ghostscript). \noindent Embed missing fonts (with the help of Ghostscript).
\section*{\hyperref[chap:15]{PDF and JSON}} \section*{\hyperref[chap:15]{Chapter 15: PDF and JSON}}
\begin{framed}\noindent\texttt{cpdf in.pdf -output-json -output-json-parse-content-streams\\\phantom{\ \ \ \ } -o out.json}\end{framed} \begin{framed}\noindent\texttt{cpdf in.pdf -output-json -output-json-parse-content-streams\\\phantom{\ \ \ \ } -o out.json}\end{framed}
\noindent Write the PDF in JSON format to the given file, parsing its content streams into individual JSON objects too. \noindent Write the PDF in JSON format to the given file, parsing its content streams into individual JSON objects too.
\section*{\hyperref[chap:16]{Optional Content Groups}} \section*{\hyperref[chap:16]{Chapter 16: Optional Content Groups}}
\begin{framed}\noindent\texttt{cpdf -ocg-list in.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -ocg-list in.pdf}\end{framed}
@ -280,7 +280,9 @@ A sampling of just a few of the facilities provided by the Coherent PDF Command
\noindent Coalesce optional content groups after merging or stamping two files with OCGs with like names. \noindent Coalesce optional content groups after merging or stamping two files with OCGs with like names.
\section*{\hyperref[chap:misc]{Miscellaneous}} \section*{\hyperref[chap:17]{Chapter 17: Creating New PDFs}}
\section*{\hyperref[chap:misc]{Chapter X: Miscellaneous}}
\begin{framed}\noindent\texttt{cpdf -blacktext in.pdf -o out.pdf}\end{framed} \begin{framed}\noindent\texttt{cpdf -blacktext in.pdf -o out.pdf}\end{framed}