diff options
author | Karl Berry <karl@freefriends.org> | 2014-03-25 21:30:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-03-25 21:30:27 +0000 |
commit | e8a884428836209033a6814f92ec7d5f7656612b (patch) | |
tree | 4cdb35cb4f0697828f362ad7d2e7c7d6ce999609 /Master/texmf-dist/tex/latex | |
parent | c775aa64db61c07e4045d0455f4bd11ccd071bb4 (diff) |
media9 (25mar14)
git-svn-id: svn://tug.org/texlive/trunk@33290 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/media9/media9.sty | 52 |
1 files changed, 25 insertions, 27 deletions
diff --git a/Master/texmf-dist/tex/latex/media9/media9.sty b/Master/texmf-dist/tex/latex/media9/media9.sty index 40c18decd8e..959370fb20d 100644 --- a/Master/texmf-dist/tex/latex/media9/media9.sty +++ b/Master/texmf-dist/tex/latex/media9/media9.sty @@ -40,10 +40,11 @@ \RequirePackage{xparse} \RequirePackage{ifpdf} \RequirePackage{atbegshi} +\RequirePackage{atenddvi} \RequirePackage{tikz} -\def\g@mix@date@tl{2014/03/21} -\def\g@mix@version@tl{0.42} +\def\g@mix@date@tl{2014/03/25} +\def\g@mix@version@tl{0.43} \def\g@mix@liiikerneldate{2013/07/28} \def\g@mix@liiipkgdate{2013/07/28} @@ -476,12 +477,12 @@ \tl_if_exist:cF{@anim@fields}{\tl_gset:cn{@anim@fields}{}}%takes Field object refs \cs_new:Nn\mix_insert_acroform:{ %AcroForm dict \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~false>>} - \AtEndDocument{ - \mix_pdfobj:nnn{\g_mix_fieldsarray_tl}{array}{\@anim@fields} + \AtEndDvi{ + \tl_if_empty:NF\@anim@fields{ + \mix_pdfobj:nnn{}{array}{\@anim@fields} + \mix_pdfcatalog:n{ + /AcroForm~<</Fields~\g_mix_pdflastobj_tl/NeedAppearances~false>>} + } } \tl_gset:cn{Acro@Form@added}{} } @@ -491,21 +492,21 @@ \tl_if_exist:cF{@anim@offocgs}{\tl_gset:cn{@anim@offocgs}{}} \cs_new:Nn\mix_insert_ocprops:{%OCProperties dict \tl_if_exist:cF{oc@props@added}{ - \mix_pdfobj:nnn{}{array}{} - \tl_gset:Nx\g_mix_ocgarray_tl{\g_mix_pdflastobj_tl} - \mix_pdfobj:nnn{}{array}{} - \tl_gset:Nx\g_mix_offocgarray_tl{\g_mix_pdflastobj_tl} - \mix_pdfcatalog:n{ - /OCProperties~<< - /OCGs~\g_mix_ocgarray_tl - /D~<< - /BaseState/ON~/OFF~\g_mix_offocgarray_tl - >> - >> - } - \AtEndDocument{ - \mix_pdfobj:nnn{\g_mix_ocgarray_tl}{array}{\@anim@ocgs} - \mix_pdfobj:nnn{\g_mix_offocgarray_tl}{array}{\@anim@offocgs} + \AtEndDvi{ + \tl_if_empty:NF\@anim@ocgs{ + \mix_pdfobj:nnn{}{array}{\@anim@ocgs} + \tl_gset:Nx\g_mix_ocgarray_tl{\g_mix_pdflastobj_tl} + \mix_pdfobj:nnn{}{array}{\@anim@offocgs} + \tl_gset:Nx\g_mix_offocgarray_tl{\g_mix_pdflastobj_tl} + \mix_pdfcatalog:n{ + /OCProperties~<< + /OCGs~\g_mix_ocgarray_tl + /D~<< + /BaseState/ON~/OFF~\g_mix_offocgarray_tl + >> + >> + } + } } \tl_gset:cn{oc@props@added}{} } @@ -1537,7 +1538,6 @@ /AA~<</PO~\g_mix_pdflastobj_tl~/PV~\g_mix_pdflastobj_tl>> } \tl_gput_right:Nx\@anim@fields{\space\g_mix_pdflastann_tl\space} - \mix_insert_acroform: \hbox_overlap_right:n{ \box_move_down:nn{\l_mix_dp_tl-\box_dp:N\l_mix_poster_box}{ \box_use:N\l_mix_poster_box @@ -1549,7 +1549,6 @@ } }{%insert play button overlay \mix_insert_btnocg: %create OCG - \mix_insert_ocprops: \cs_gset_eq:Nc\mix_pbtn:NN{g@mix@pbtn@\g_mix_usrpbtn_tl @tl} \hbox_set:Nn\l_mix_pbtn_box{\mix_pbtn:NN\l_mix_wd_tl\l_mix_tt_tl} \box_move_down:nn{\l_mix_dp_tl}{ @@ -2664,7 +2663,6 @@ >> } \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 } @@ -2672,4 +2670,4 @@ } \group_end: } -\bool_if:NF\g_mix_pdfoutput_bool{\mix_insert_ocprops:\mix_insert_acroform:} +\mix_insert_ocprops:\mix_insert_acroform: |