diff options
author | Karl Berry <karl@freefriends.org> | 2014-02-06 23:21:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-02-06 23:21:46 +0000 |
commit | 60d128571258b0d294d7cc43bd4227b4f7b7f076 (patch) | |
tree | 8f41cb046a387c8db284f3023e2bb6739da1218b /Master/texmf-dist/tex | |
parent | f4a0b10b29cbb9f66a51c23b44d36967a7248997 (diff) |
media9 (6feb14)
git-svn-id: svn://tug.org/texlive/trunk@32885 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/media9/media9.sty | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/media9/media9.sty b/Master/texmf-dist/tex/latex/media9/media9.sty index 1bb6ab1b1b2..0f92922e10b 100644 --- a/Master/texmf-dist/tex/latex/media9/media9.sty +++ b/Master/texmf-dist/tex/latex/media9/media9.sty @@ -42,8 +42,8 @@ \RequirePackage{atbegshi} \RequirePackage{tikz} -\def\g@mix@date@tl{2013/12/04} -\def\g@mix@version@tl{0.38} +\def\g@mix@date@tl{2014/02/06} +\def\g@mix@version@tl{0.39} \def\g@mix@liiikerneldate{2013/07/28} \def\g@mix@liiipkgdate{2013/07/28} @@ -468,6 +468,22 @@ } \group_end: +%takes Field object refs +\tl_if_exist:cF{@anim@fields}{\tl_gset:cn{@anim@fields}{}} +%macro for adding AcroForm entry to PDF Catalog +\cs_new:Nn\mix_insert_acroform:{ + \tl_if_exist:cF{Acro@Form@added}{ + \mix_pdfobj:nnn{}{array}{} + \tl_gset:Nx\g_mix_fieldsarray_tl{\g_mix_pdflastobj_tl} + \mix_pdfcatalog:n{ + /AcroForm~<</Fields~\g_mix_fieldsarray_tl/NeedAppearances~true>>} + \AtEndDocument{% + \mix_pdfobj:nnn{\g_mix_fieldsarray_tl}{array}{\@anim@fields} + } + \tl_gset:cn{Acro@Form@added}{} + } +} + %commands for creating PDF objects, annots etc. \bool_if:NTF\g_mix_pdfoutput_bool{ %helper func to remove `0 R' part from pdf obj reference @@ -531,13 +547,7 @@ \tl_set:Nn\l_mix_ndname_tl{\mix_unescapehex:n{#1}} } - %macro for adding AcroForm entry to PDF Catalog - \cs_new:Nn\mix_insert_acroform:{ - \tl_if_exist:cF{Acro@Form@added}{ - \pdfcatalog{/AcroForm~<</Fields~[]/NeedAppearances~true>>} - \tl_gset:cn{Acro@Form@added}{} - } - } + \cs_new:Nn\mix_pdfcatalog:n{\pdfcatalog{#1}} }{ \int_new:N\g_mix_obj_int % object ID \bool_if:NTF\g_mix_dvipdfmx_bool{ %dvipdfmx/XeTeX @@ -619,13 +629,7 @@ \tl_set:Nn\l_mix_ndname_tl{<#1>} } - \cs_new:Nn\mix_insert_acroform:{ - \tl_if_exist:cF{Acro@Form@added}{ - \special{pdf:put~@catalog~<< - /AcroForm~<</Fields~[]/NeedAppearances~true>>>>} - \tl_gset:cn{Acro@Form@added}{} - } - } + \cs_new:Nn\mix_pdfcatalog:n{\special{pdf:put~@catalog~<<#1>>}} }{ % dvips \bool_new:N\g_mix_powerdot_bool %to cope with some powerdot oddity @@ -896,14 +900,8 @@ \tl_set:Nn\l_mix_ndname_tl{mix@unicode} } - \cs_new:Nn\mix_insert_acroform:{ - \tl_if_exist:cF{Acro@Form@added}{ - \special{ps: - mark~{Catalog}~<</AcroForm~<</Fields~[]/NeedAppearances~true>>>>~ - /PUT~pdfmark - } - \tl_gset:cn{Acro@Form@added}{} - } + \cs_new:Nn\mix_pdfcatalog:n{ + \special{ps:~mark~{Catalog}~<<#1>>~/PUT~pdfmark} } } } @@ -1412,6 +1410,7 @@ /T~(fd@\g_mix_label_tl) /AA~<</PO~\g_mix_pdflastobj_tl~/PV~\g_mix_pdflastobj_tl>> } + \tl_gput_right:Nx\@anim@fields{\g_mix_pdflastann_tl\space} \mix_insert_acroform: } \hbox_overlap_right:n{ @@ -2525,6 +2524,7 @@ \tl_if_empty:NF\g_mix_btnactions_tl{/Next~[\g_mix_btnactions_tl]} >> } + \tl_gput_right:Nx\@anim@fields{\g_mix_pdflastann_tl\space} \mix_insert_acroform: \hbox_to_wd:nn{\width}{ \vrule~width~\c_zero_dim~height~\height~depth~\depth\hss |