[latex3-commits] [git/LaTeX3-latex3-pdfresources] testlinkstuff: storing (a86f286)

Ulrike Fischer fischer at troubleshooting-tex.de
Sun May 12 01:02:53 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : testlinkstuff
Link       : https://github.com/latex3/pdfresources/commit/a86f286bb215488720325ecf5f104440bbeff0e6

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

commit a86f286bb215488720325ecf5f104440bbeff0e6
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun May 12 01:02:53 2019 +0200

    storing


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

a86f286bb215488720325ecf5f104440bbeff0e6
 test-pdfresources.tex |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/test-pdfresources.tex b/test-pdfresources.tex
index 62c3b5d..a95d321 100644
--- a/test-pdfresources.tex
+++ b/test-pdfresources.tex
@@ -17,6 +17,35 @@
 \ExplSyntaxOff
 \usepackage{xcolor,listings}
 \title{some title}
+\usepackage{tikz}
+\showthe\pdfpageresources
+\makeatletter
+\show\pgf at sys@pgf at resource@list at colorspaces
+\show\pgf at sys@pgf at resource@list at patterns
+\ExplSyntaxOn
+%Trying to patch pdf ...
+\cs_new:Npn \__pdf_dict_entry_split:w  #1/#2 <<#3>> \q_stop
+{
+ \driver_pdf_pageresources_gput:nnn {#1}{#2}{<<#3>>}
+}
+%this works
+\def\pgf at sys@addpdfresource at extgs@plain#1
+ {
+  \__pdf_dict_entry_split:w {ExtGState}#1\q_stop
+ }
+%need to check the value 
+%\def\pgf at sys@addpdfresource at patterns@plain #1
+% {
+%  \__pdf_dict_entry_split:w {Patterns}#1\q_stop
+% }
+ %wrong, colorspace entry has an array as value internally
+%\def\pgf at sys@addpdfresource at colorspaces@plain#1
+% {
+%  \__pdf_dict_entry_split:w {ColorSpace}#1\q_stop
+% }
+ 
+  \exp_args:Nno \__pdf_dict_entry_split:w {ColorSpace}\pgf at sys@pgf at resource@list at colorspaces\q_stop
+\ExplSyntaxOff
 \usepackage[customdriver=hluatex-experimental,
             %pdfusetitle,
             ocgcolorlinks,
@@ -43,6 +72,8 @@
 \begin{document}\parskip=1cm
 %
 bllb
+
+\tikz\fill[red,opacity=0.5] (0,0) rectangle (1,1);
 \end{document}
 \includegraphics[page=1]{example-image-duck}
 spme text\newpage





More information about the latex3-commits mailing list