diff options
author | Hans Hagen <pragma@wxs.nl> | 2009-06-03 11:48:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2009-06-03 11:48:00 +0200 |
commit | e9990ae7c22295e59c1d2c80c7e2717738b5c120 (patch) | |
tree | 3aa7906d97c3b7db13254f78c88c09cb926152ef /tex/context/base/back-pdf.lua | |
parent | 40e5e0f114c759b17af50cde80677a9612d4d41b (diff) | |
download | context-e9990ae7c22295e59c1d2c80c7e2717738b5c120.tar.gz |
beta 2009.06.03 11:48
Diffstat (limited to 'tex/context/base/back-pdf.lua')
-rw-r--r-- | tex/context/base/back-pdf.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/back-pdf.lua b/tex/context/base/back-pdf.lua index 2488db7f7..dd0fb504b 100644 --- a/tex/context/base/back-pdf.lua +++ b/tex/context/base/back-pdf.lua @@ -140,7 +140,7 @@ end -- code function codeinjections.insertmovie(spec) -- width, height, factor, repeat, controls, preview, label, foundname - local width, height = spec.width, spec.height + local width, height, factor = spec.width, spec.height, spec.factor or number.dimenfactors.bp local options, actions = "", "" if spec["repeat"] then actions = actions .. "/Mode /Repeat " @@ -157,7 +157,7 @@ function codeinjections.insertmovie(spec) -- width, height, factor, repeat, cont actions= "/A <<" .. actions .. ">>" end return format( -- todo: doPDFannotation - "\\doPDFannotation{%ssp}{%ssp}{/Subtype /Movie /Border [0 0 0] /T (movie %s) /Movie << /F (%s) /Aspect [%s %s] %s>> %s}", + "\\insertpdfannotation{%ssp}{%ssp}{/Subtype /Movie /Border [0 0 0] /T (movie %s) /Movie << /F (%s) /Aspect [%s %s] %s>> %s}", width, height, spec.label, spec.foundname, factor * width, factor * height, options, actions ) end |