[latex3-commits] [git/LaTeX3-latex3-pdfresources] renamedict77: attachfile changes (6a5c7de)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Apr 27 20:09:51 CEST 2020


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

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

commit 6a5c7de301d71f30bd906c210de44c2bd447cd00
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Apr 27 20:09:51 2020 +0200

    attachfile changes


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

6a5c7de301d71f30bd906c210de44c2bd447cd00
 experiments/new-attachfile.atfi |   1 -
 experiments/new-attachfile.tex  | 122 +++++++++++++++++++++++++---------------
 2 files changed, 76 insertions(+), 47 deletions(-)

diff --git a/experiments/new-attachfile.atfi b/experiments/new-attachfile.atfi
index 698b84b..86fc25b 100644
--- a/experiments/new-attachfile.atfi
+++ b/experiments/new-attachfile.atfi
@@ -1,2 +1 @@
 \attachfile at timezone{}
-\attachfile at file[]{636174616C6F6775652E746578}
diff --git a/experiments/new-attachfile.tex b/experiments/new-attachfile.tex
index 1be6713..2810292 100644
--- a/experiments/new-attachfile.tex
+++ b/experiments/new-attachfile.tex
@@ -1,56 +1,86 @@
 % !Mode:: "TeX:UTF-8:Main"
 \documentclass{article}
 \usepackage{xcolor}
-\usepackage[customdriver=hgeneric-experimental,pdfversion=1.7]{hyperref}
+\usepackage[customdriver=hgeneric-experimental]{hyperref}
 \usepackage{new-attachfile,l3draw,l3color}
 %\definecolor{attachfilecolor}{cmyk}{.1,.2,.3,.4}
 %t0\attachfilesetup{color=attachfilecolor}
 \begin{document}
+abc
+%\attachfile[icon=Graph,mimetype=application/x-hdf]{catalogue.tex} some text
+%\makeatletter
+%
+%x\atfi at acroPushPin x
+%\show\x
+%
+%\atfi at acroGraph@data
+\ExplSyntaxOn
+\__draw_backend_scope_begin:
+\__draw_backend_linewidth:n {1bp}
+\__draw_backend_moveto:nn {1bp} {6bp}
+\__draw_backend_lineto:nn {11bp}{6bp}
+\__draw_backend_lineto:nn {11bp}{13bp}
+\__draw_backend_lineto:nn {12bp}{13bp}
+\__draw_backend_lineto:nn {14bp}{11bp}
+\__draw_backend_lineto:nn {21bp}{11bp}
+\__draw_backend_lineto:nn {22bp}{12bp}
+\__draw_backend_lineto:nn {23bp}{12bp}
+\__draw_backend_lineto:nn {22bp}{2bp}
+\__draw_backend_lineto:nn {21bp}{3bp}
+\__draw_backend_lineto:nn {14bp}{3bp}
+\__draw_backend_lineto:nn {12bp}{1bp}
+\__draw_backend_lineto:nn {11bp}{1bp}
+\__draw_backend_lineto:nn {11bp}{6bp}
 
-\attachfile[icon=Graph,mimetype=application/x-hdf]{catalogue.tex} some text
-\makeatletter
+\__atfi_color_to_rgb_seq:nN {__atfi_color_inline} \l_tmpa_seq
+   \exp_last_unbraced:Ne \__draw_backend_color_fill_rgb:nnn
+     { \seq_map_function:NN \l_tmpa_seq \__atfi_arg_braced:n }
+\__draw_backend_color_stroke_gray:n {0}
+\__draw_backend_fillstroke:
+\__draw_backend_color_stroke_gray:n {0.5}
+\__draw_backend_moveto:nn {0bp} {7bp}
+\__draw_backend_lineto:nn {10bp}{7bp}
+\__draw_backend_lineto:nn {10bp}{8bp}
+\__draw_backend_lineto:nn {1bp}{8bp}
+\__draw_backend_stroke:
+\__draw_backend_scope_end:
+\ExplSyntaxOff
 
-x\atfi at acroPushPin x
-\show\x
-
-\atfi at acroGraph@data
-
-
-\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
-}
+%\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





More information about the latex3-commits mailing list.