diff --git a/cpdfmanual.pdf b/cpdfmanual.pdf index 3d62176..f4bd868 100644 Binary files a/cpdfmanual.pdf and b/cpdfmanual.pdf differ diff --git a/cpdfmanual.tex b/cpdfmanual.tex index 1aaa6d8..011c633 100644 --- a/cpdfmanual.tex +++ b/cpdfmanual.tex @@ -4380,6 +4380,24 @@ Lines may have dash patterns. A dash pattern consists of one or more numbers. Al \noindent\verb!-fill-opacity! Set opacity\\ \noindent\verb!-stroke-opacity! Set stroke opacity \end{framed}} + +We can set fill and stroke transparencies, between 0 (fully transparent) and 1 (fully opaque): + +\begin{framed} + \noindent\small\verb?cpdf -create-pdf AND -draw -fill-opacity 0.5"?\\ + \noindent\small\verb?-circle "250 300 150" -fill -circle "350 300 150" -fill?\\ + \noindent\small\verb?-o out.pdf? +\end{framed} + +\noindent Here is the result: + +\bigskip +\fbox{\includegraphics[width=0.3\textwidth]{manualimages/trans.pdf}} +\bigskip + +\noindent Notice that we used \texttt{-fill} twice, to ensure each circle was in a different path. If they had been part of the same path, the effect would be different. + + \section{Text} {\small\begin{framed} diff --git a/manualimages/trans.pdf b/manualimages/trans.pdf new file mode 100644 index 0000000..7d3257d Binary files /dev/null and b/manualimages/trans.pdf differ