This commit is contained in:
John Whitington 2021-12-27 15:33:59 +00:00
parent b6c5439829
commit fa923c957f
2 changed files with 7 additions and 2 deletions

Binary file not shown.

View File

@ -2001,8 +2001,7 @@ specifies the size in points:
\subsection{Colors} \subsection{Colors}
\index{color} \index{color}
The \texttt{-color} option takes an RGB color, where red, green and blue The \texttt{-color} option takes an RGB (3 values), CYMK (4 values), or Grey (1 value) color. Components range between 0 and 1. The following RGB colors are predefined:
components range between 0 and 1. The following values are predefined:
\vspace{2mm} \vspace{2mm}
\begin{tabular}{ll} \begin{tabular}{ll}
@ -2019,6 +2018,12 @@ components range between 0 and 1. The following values are predefined:
\vspace{1.5mm} \vspace{1.5mm}
\small\verb!cpdf -add-text "Hullo" -color "0.5 0.5 0.5" in.pdf -o out.pdf! \small\verb!cpdf -add-text "Hullo" -color "0.5 0.5 0.5" in.pdf -o out.pdf!
\vspace{1.5mm}
\small\verb!cpdf -add-text "Hullo" -color "0.75" in.pdf -o out.pdf!
\vspace{1.5mm}
\small\verb!cpdf -add-text "Hullo" -color "0.5 0.5 0.4 0.9" in.pdf -o out.pdf!
\end{framed} \end{framed}
\noindent Partly-transparent text may be specified using the \verb!-opacity! option. Wholly opaque is 1 and wholly transparent is 0. For example: \noindent Partly-transparent text may be specified using the \verb!-opacity! option. Wholly opaque is 1 and wholly transparent is 0. For example: