[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: correction to new-attachfile (but still not working) (12e677a)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Nov 16 10:36:16 CET 2020
Repository : https://github.com/latex3/pdfresources
On branch : splitting
Link : https://github.com/latex3/pdfresources/commit/12e677a294dc6c04bad5f7dd68eeecacf62be7f4
>---------------------------------------------------------------
commit 12e677a294dc6c04bad5f7dd68eeecacf62be7f4
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Nov 16 10:36:16 2020 +0100
correction to new-attachfile (but still not working)
>---------------------------------------------------------------
12e677a294dc6c04bad5f7dd68eeecacf62be7f4
experiments/new-attachfile.tex | 15 +++++++++------
newpackages/new-attachfile.sty | 8 ++++----
2 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/experiments/new-attachfile.tex b/experiments/new-attachfile.tex
index 845e474..8776e2d 100644
--- a/experiments/new-attachfile.tex
+++ b/experiments/new-attachfile.tex
@@ -1,5 +1,6 @@
% !Mode:: "TeX:UTF-8:Main"
\RequirePackage{pdfresources}
+\DeclareDocumentMetadata{}
\documentclass{article}
\usepackage{xcolor}
\usepackage[customdriver=hgeneric-experimental]{hyperref}
@@ -16,17 +17,19 @@ abc
%\attachfile[icon=Graph,mimetype=text/plain,color=red]{catalogue.tex} some text
%
-\tl_set:Nn\l__atfi_annot_color_tl {red}
-
-\__atfi_annot_print_icon_Paperclip:
-\__atfi_annot_print_icon_Tag:
-\__atfi_annot_print_icon_Graph:
-\__atfi_annot_print_icon_PushPin:
+%\tl_set:Nn\l__atfi_annot_color_tl {red}
+%
+%\__atfi_annot_print_icon_Paperclip:
+%\__atfi_annot_print_icon_Tag:
+%\__atfi_annot_print_icon_Graph:
+%\__atfi_annot_print_icon_PushPin:
%\atfi at acroGraph
%\atfi at acroPushPin
\ExplSyntaxOff
+
+\attachfile[icon=Graph,mimetype=text/plain,color=red]{catalogue.tex} some text
\end{document}
\makeatletter
\attachfilesetup{color=red,author=Müsterhaße,new-afrelationship=blub}
diff --git a/newpackages/new-attachfile.sty b/newpackages/new-attachfile.sty
index 034b7ce..1139683 100644
--- a/newpackages/new-attachfile.sty
+++ b/newpackages/new-attachfile.sty
@@ -94,9 +94,9 @@
}
% variables
% probably generic ....
-\pdfdict_new:n {annot/FileAttachment}
+\pdfdict_new:nn {l} {annot/FileAttachment}
\pdfdict_put:nnn {annot/FileAttachment}{Subtype}{/FileAttachment}
-\pdfdict_new:n {annot/FileAttachment/AP} % appearance
+\pdfdict_new:nn {l} {annot/FileAttachment/AP} % appearance
%
\color_set:nnn {__atfi_annot_color}{rgb}{1,0.9255,0.7765}
@@ -519,7 +519,7 @@
\group_begin:
% keys #1
%\tl_to_str for #2?? file_name??
- \atfi at attachfile{#2}%
+ \atfi at attachfile{}{#2}%
\group_end
}
@@ -573,7 +573,7 @@
\__draw_backend_miterlimit:n {4bp}
\__draw_backend_color_fill_gray:n {1}
- \__draw_backend_color_stroke_gray:n {0}
+ %\__draw_backend_color_stroke_gray:n {0}
\__draw_backend_rectangle:nnnn {0.25bp} {1.6453bp} {20.145bp} {17.7715bp}
\__draw_backend_fillstroke:
More information about the latex3-commits
mailing list.