[latex3-commits] [git/LaTeX3-latex3-pdfresources] renamedict77: constant prop for flags (e55d382)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Apr 29 19:53:03 CEST 2020
Repository : https://github.com/latex3/pdfresources
On branch : renamedict77
Link : https://github.com/latex3/pdfresources/commit/e55d3823ee3858b870a338319e6b76fb3357e533
>---------------------------------------------------------------
commit e55d3823ee3858b870a338319e6b76fb3357e533
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Apr 29 19:53:03 2020 +0200
constant prop for flags
>---------------------------------------------------------------
e55d3823ee3858b870a338319e6b76fb3357e533
pdfresources.dtx | 41 +++++++++++++++++++++--------------------
1 file changed, 21 insertions(+), 20 deletions(-)
diff --git a/pdfresources.dtx b/pdfresources.dtx
index cc7480c..9c98e4c 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -2796,16 +2796,6 @@
% These command give back the sizes of the XObject. The values are stored in
% tl-variables with the unit pt and not in dimensions!
% \end{function}
-% \begin{function}[EXP,pTF,added = 220-04-29]
-% {
-% \pdf_xform_if_exist:n
-% }
-% \begin{syntax}
-% \cs{pdf_xform_if_exist_p:n} \Arg{name}
-% \cs{pdf_xform_if_exist:NTF} \meta{name} \Arg{true code} \Arg{false code}
-% \end{syntax}
-% These command tests if an xform with name \Arg{name} has been already defined.
-% \end{function}%
% \begin{macrocode}
\cs_new_protected:Npn \pdf_xform_new:nnn #1 #2 #3
{
@@ -3112,16 +3102,6 @@
\box_use_drop:N \l_@@_tmpa_box
}
}
-%% all
-\prg_new_conditional:Npnn \@@_backend_xform_if_exist:n #1 { p , T , F , TF }
- {
- \int_if_exist:cTF { c_@@_backend_xform_ \tl_to_str:n {#1} _int }
- { \prg_return_true: }
- { \prg_return_false:}
- }
-\prg_new_eq_conditional:NNn \pdf_xform_if_exist:n\@@_backend_xform_if_exist:n
- { TF , T , F , p }
-
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -3208,7 +3188,28 @@
% \end{macrocode}
+% \subsection{Annotations, help tools}
+% \begin{variable}{ \c_pdfannot_flags_prop }
+% This property list maps keys like \enquote{Invisible} to the
+% bit positions for the /F-flag. It can be used
+% e.g. with bitsets.
+% \end{variable}
%
+% \begin{macrocode}
+\prop_const_from_keyval:Nn \c_pdfannot_flags_prop
+ {
+ Invisible = 0,
+ Hidden = 1,
+ Print = 2,
+ NoZoom = 3,
+ NoRotate = 4,
+ NoView = 5,
+ ReadOnly = 6,
+ Locked = 7,
+ ToggleNoView = 8,
+ LockedContents = 9
+ }
+% \end{macrocode}
% \subsection{Annotations, subtype Link}\label{sec:links}
% Packages like hyperref, ocgx2 and tagpdf all wants to add code
% to link annotation. So we need commands to start and end a link which allows
More information about the latex3-commits
mailing list.