[latex3-commits] [git/LaTeX3-latex3-pdfresources] renamedict77: storing attachfile experiment (a078f19)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Apr 16 19:22:16 CEST 2020


Repository : https://github.com/latex3/pdfresources
On branch  : renamedict77
Link       : https://github.com/latex3/pdfresources/commit/a078f19f6599e169f45bfc658d2cfef417654d0e

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

commit a078f19f6599e169f45bfc658d2cfef417654d0e
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Apr 16 19:22:16 2020 +0200

    storing attachfile experiment


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

a078f19f6599e169f45bfc658d2cfef417654d0e
 experiments/new-attachfile.atfi |   2 +
 experiments/new-attachfile.tex  | 106 ++++++++++++++++++++++++++++++++++++++++
 info/hycolor-thoughts.tex       |  26 ++++++++++
 3 files changed, 134 insertions(+)

diff --git a/experiments/new-attachfile.atfi b/experiments/new-attachfile.atfi
new file mode 100644
index 0000000..d6d0b24
--- /dev/null
+++ b/experiments/new-attachfile.atfi
@@ -0,0 +1,2 @@
+\attachfile at timezone{}
+\attachfile at file[]{6578616D706C652D696D6167652D41}
diff --git a/experiments/new-attachfile.tex b/experiments/new-attachfile.tex
new file mode 100644
index 0000000..e51631f
--- /dev/null
+++ b/experiments/new-attachfile.tex
@@ -0,0 +1,106 @@
+% !Mode:: "TeX:UTF-8:Main"
+\documentclass{article}
+\usepackage{xcolor}
+\usepackage[customdriver=hgeneric-experimental,pdfversion=1.7]{hyperref}
+\usepackage{new-attachfile,l3draw,l3color}
+%\definecolor{attachfilecolor}{cmyk}{.1,.2,.3,.4}
+%t0\attachfilesetup{color=attachfilecolor}
+\begin{document}
+\attachfile[icon=Graph]{example-image-A} some text
+\makeatletter
+
+x\atfi at acroPushPin x
+
+
+x\ExplSyntaxOn
+\tl_set:Nn \l_color_fixed_model_tl {rgb}
+\color_parse:nN {cyan!50!magenta!10!yellow}\l_tmpa_tl
+\tl_show:N\l_tmpa_tl
+\__draw_backend_scope_begin:
+\__draw_backend_color_fill_gray:n {0.5}
+\__draw_backend_rectangle:nnnn {1.1133bp}{0bp}{20.7202bp}{18.2754bp}
+\__draw_backend_fill:
+\__draw_backend_literal:x {0~i} %???
+\__draw_backend_linewidth:n {0.5bp}
+\__draw_backend_miterlimit:n {4bp}
+
+\__draw_backend_color_fill_gray:n {1}
+\__draw_backend_color_stroke_gray:n {0}
+\__draw_backend_rectangle:nnnn {0.25bp} {1.6453bp} {20.145bp} {17.7715bp}
+\__draw_backend_fillstroke:
+
+\__draw_backend_color_fill_gray:n {0}
+\__draw_backend_rectangle:nnnn {2.7319bp}{4.1367bp}{3.9571bp}{13.8867bp}
+\__draw_backend_fill:
+\__draw_backend_rectangle:nnnn {8.7031bp}{4.1367bp}{3.9571bp}{9.8867bp}
+\__draw_backend_fill:
+\__draw_backend_rectangle:nnnn {14.7471bp}{4.1367bp}{3.9571bp}{11.8867bp}
+\__draw_backend_fill:
+
+\__draw_backend_scope_end:
+\ExplSyntaxOff
+y
+\show\atfi at color@inline
+\def\atfi at acroGraph@data{%
+  \atfi at GSAVE
+  0.5 \atfi at SETGRAYFILL
+  1.1133 0 20.7202 18.2754 \atfi at RECTFILL
+  0 \atfi at SETFLAT
+  0.5 \atfi at SETLINEWIDTH
+  4 \atfi at SETMITERLIMIT
+  \atfi at RECTSTROKEFILL{%
+    1 \atfi at SETGRAYFILL
+  }{%
+    0 \atfi at SETGRAYSTROKE
+  }{%
+    0.25 1.6453 20.145 17.7715 %
+  }%
+  0 \atfi at SETGRAYFILL
+  2.7319 4.1367 3.9571 13.8867 \atfi at RECTFILL
+  8.7031 4.1367 3.9571 9.8867 \atfi at RECTFILL
+  14.7471 4.1367 3.9571 11.8867 \atfi at RECTFILL
+  \atfi at color@inline{FILL}%
+  1.689 3.0938 3.9571 13.8867 \atfi at RECTFILL
+  7.6602 3.0938 3.9571 9.8867 \atfi at RECTFILL
+  13.7041 3.0938 3.9571 11.8867 \atfi at RECTFILL
+  \atfi at GRESTORE
+}
+
+\def\atfi at acroPushPin@data{%
+  \atfi at GSAVE
+  1 \atfi at SETLINEWIDTH
+  1 6   \atfi at MOVETO
+  11 6  \atfi at LINETO
+  11 13 \atfi at LINETO
+  12 13 \atfi at LINETO
+  14 11 \atfi at LINETO
+  21 11 \atfi at LINETO
+  22 12 \atfi at LINETO
+  23 12 \atfi at LINETO
+  23 2  \atfi at LINETO
+  22 2  \atfi at LINETO
+  21 3  \atfi at LINETO
+  14 3  \atfi at LINETO
+  12 1  \atfi at LINETO
+  11 1  \atfi at LINETO
+  11 6  \atfi at LINETO
+  \atfi at FILLSTROKE{%
+    \atfi at color@inline{FILL}%
+  }{%
+    0 \atfi at SETGRAYSTROKE
+  }%
+  0.5 \atfi at SETGRAYSTROKE
+  0 7  \atfi at MOVETO
+  10 7 \atfi at LINETO
+  10 8 \atfi at LINETO
+  1 8  \atfi at LINETO
+  \atfi at STROKE
+  1 \atfi at SETGRAYSTROKE
+  12 12 \atfi at MOVETO
+  14 10 \atfi at LINETO
+  22 10 \atfi at LINETO
+  22 11 \atfi at LINETO
+  \atfi at STROKE
+  \atfi at GRESTORE
+}
+\end{document}
\ No newline at end of file
diff --git a/info/hycolor-thoughts.tex b/info/hycolor-thoughts.tex
new file mode 100644
index 0000000..d8cc858
--- /dev/null
+++ b/info/hycolor-thoughts.tex
@@ -0,0 +1,26 @@
+Variety of input
+
+color=1 0 .5
+color=1 0 .5 0.4
+color=[rgb]{1,0,.5}
+color=[gray]{.5}
+color=red
+color=red!50!blue
+color=[named]{red} (hyperref)
+
+
+Color option   Models without xcolor RGB color Model empty
+BKM.color      gray, rgb             no        no
+Hyp.*color     all                   no        no
+Hyp.*bordercolor gray, rgb           yes       no
+Field.*color   gray, rgb, cmyk       yes       yes
+AtFi.color     gray, rgb             yes       no
+
+
+pdfreference:
+bookmarks: /C RGB
+annotation: 0,1,2,3,4
+
+
+-> output 
+





More information about the latex3-commits mailing list.