[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: transparency test (e15a6ca)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Sep 10 23:58:12 CEST 2020


Repository : https://github.com/latex3/pdfresources
On branch  : splitting
Link       : https://github.com/latex3/pdfresources/commit/e15a6caf80a1e84fd1722744a006f103341fb80f

>---------------------------------------------------------------

commit e15a6caf80a1e84fd1722744a006f103341fb80f
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Sep 10 23:58:12 2020 +0200

    transparency test


>---------------------------------------------------------------

e15a6caf80a1e84fd1722744a006f103341fb80f
 experiments/mix-transparency-test.tex | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/experiments/mix-transparency-test.tex b/experiments/mix-transparency-test.tex
new file mode 100644
index 0000000..ce0670b
--- /dev/null
+++ b/experiments/mix-transparency-test.tex
@@ -0,0 +1,17 @@
+\RequirePackage{pdfresources}
+\DeclareDocumentMetaData{uncompress}
+\documentclass{article}
+\begin{document}
+\ExplSyntaxOn
+\pdfcoredict_gput:nnn{Page/Resources/ExtGState}{duckopacity}{<</CA~.5/ca~0.5>>}
+\pdfcoredict_gput:nnn{Page/Resources/ExtGState}{bearopacity}{<</CA~1/ca~1>>}
+\ExplSyntaxOff
+aaaaa
+\special{pdf:code /duckopacity gs}
+...some text goes here...
+\special{pdf:code /bearopacity gs}
+aaaaaa
+\special{pdf:bxgstate << /CA 0.1 /ca 0.1 >>}
+   Transparent\newpage text.
+\special{pdf:exgstate}%
+\end{document}





More information about the latex3-commits mailing list.