# [pdftex] [CTAN] animate

Victor Ivrii vivrii at gmail.com
Sat Mar 17 06:52:21 CET 2007

On 3/17/07, James Quirk <jjq at galcit.caltech.edu> wrote:
> > I found an extremely strange problem with the Javascript in your
> > documentation and with examples which I regenerate.
> >
> > 1)They work perfectly with Adobe Acrobat 8 on Mac
> >
> > 2) They do not not work with Adobe Reader 8 on Mac (Javascript is
> > enabled and it complains that security settings prevent JS from being
> > executed and then that "a0000.actnNext is not a function" (and exactly
> > the same for all other functions). Javascript in "other" files works
> > without any complains.
> >
> > 3) Exactly the same with acroread 7.0.9 on Linux (cannot be more
> > specific), JS is enabled and the same complains
> >
> >
> > I am really puzzled by this different behavior of js in Acrobat and in
> > the Reader. Any explanations?
> I suspect that the definition of a0000.actnNext and its invocation
> are in two separate JavaScript objects. And the parsing of the
> object containing the function definition is terminating prematurely,
> when using Adobe Reader, owing to the security settings error. Thus
> resulting in the "not a function error." Note that the JavaScript security
> has nothing to do with whether or not JavaScript is enabled.
> To track the problem down you could always add a try/catch block
> around the offending code. The error message should pinpoint the
> offending method. Then you could check to see if Adobe's
> JavaScript Reference makes a distinction between Acrobat and Reader
> for the method in question. Alternatively, if you can distill
> the problem down to a minimal PDF, ship it to me and I'll take
> a look at it.
>
> James
>

The minimal example consists of the example taken from animate manual

\documentclass{article}
\usepackage{animate}
\usepackage{graphics}
\begin{document}
\begin{center}
\animategraphics[controls,loop]{4}{pg_}{0001}{0002}
\end{center}
\end{document}

(reduced to two frames), 2 pdf files (converted from eps from the same
source, does not make any difference), and a compiled ex.pdf (latex
way does not result in pdf with the different behavior)
Sure, one needs to grab animate.sty (and just look at manual itself)

>
>

>

--
========================
Victor Ivrii, Department of Mathematics, University of Toronto
http://www.math.toronto.edu/ivrii
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pg_0001.pdf
Type: application/pdf
Size: 8561 bytes
Desc: not available
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pg_0002.pdf
Type: application/pdf
Size: 9496 bytes
Desc: not available