summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/media9/media9.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-07-20 21:47:31 +0000
committerKarl Berry <karl@freefriends.org>2013-07-20 21:47:31 +0000
commit0cb266803002915dbdfe403a37b649809b4beee5 (patch)
treee61c99cb523fe5605835c5715d373ed7247e5bf8 /Master/texmf-dist/tex/latex/media9/media9.sty
parentbb7a297eae14c235d5f218959c9a3c38927bd3fa (diff)
media9 (19jul13)
git-svn-id: svn://tug.org/texlive/trunk@31246 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/media9/media9.sty')
-rw-r--r--Master/texmf-dist/tex/latex/media9/media9.sty33
1 files changed, 26 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/media9/media9.sty b/Master/texmf-dist/tex/latex/media9/media9.sty
index 557376460d6..cd03dc9ba73 100644
--- a/Master/texmf-dist/tex/latex/media9/media9.sty
+++ b/Master/texmf-dist/tex/latex/media9/media9.sty
@@ -41,8 +41,8 @@
\RequirePackage{ifpdf}
\RequirePackage{atbegshi}
-\def\g@mix@date@tl{2013/06/03}
-\def\g@mix@version@tl{0.28}
+\def\g@mix@date@tl{2013/07/19}
+\def\g@mix@version@tl{0.29}
\def\g@mix@liiikerneldate{2012/07/16}
\def\g@mix@liiipkgdate{2012/07/16}
@@ -460,6 +460,25 @@
}
\group_end:
+%add AcroForm entry to PDF Catalog
+\AtBeginDocument{
+ \@ifpackageloaded{animate}{}{
+ \bool_if:NTF\g_mix_pdfoutput_bool{
+ \pdfcatalog{/AcroForm~<</Fields~[]/NeedAppearances~true>>}
+ }{
+ \bool_if:NTF\g_mix_dvipdfmx_bool{ %dvipdfmx/XeTeX
+ \special{pdf:put~@catalog~<<
+ /AcroForm~<</Fields~[]/NeedAppearances~true>>>>}
+ }{
+ \special{ps:
+ mark~{Catalog}~<</AcroForm~<</Fields~[]/NeedAppearances~true>>>>~
+ /PUT~pdfmark
+ }
+ }
+ }
+ }
+}
+
%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
@@ -2429,11 +2448,11 @@
/T~(mbtn@\int_use:N\g_mix_mbtncnt_int)
/FT/Btn/Ff~65536
/H/P
- \tl_if_empty:NTF\g_mix_downbtn_tl{/H/I}{/H/P}
- /AP~<<
- /N~\g_mix_normalbtn_tl
- \tl_if_empty:NF\g_mix_overbtn_tl{/R~\g_mix_overbtn_tl}
- \tl_if_empty:NF\g_mix_downbtn_tl{/D~\g_mix_downbtn_tl}
+ /MK~<<
+ /TP~1~/IF~<</S/A/FB~true/A~[0.0~0.0]>>
+ /I~\g_mix_normalbtn_tl
+ \tl_if_empty:NF\g_mix_overbtn_tl{/RI~\g_mix_overbtn_tl}
+ \tl_if_empty:NF\g_mix_downbtn_tl{/IX~\g_mix_downbtn_tl}
>>
/A~<<
/S/JavaScript/JS~(app.focusRect=false;)