Bug 242617 - Okular does not play animated pdf files
Summary: Okular does not play animated pdf files
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 408664 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-23 18:10 UTC by snvv101
Modified: 2020-08-31 18:14 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.9
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description snvv101 2010-06-23 18:10:14 UTC
Version:           unspecified (using KDE 4.4.4) 
OS:                Linux

Hello,
Okular does not show any animation in a PDF file created by latex (at least).
For example open any file with okular and adobe of the following site:
http://www.texample.net/tikz/examples/tag/beamer/
I use 0.10.4 version but this happens with older versions too.
Regards
snvv

Reproducible: Didn't try
Comment 1 Albert Astals Cid 2010-06-23 23:21:37 UTC
Uses JS to do the animation we don't support JS, patches welcome.
Comment 2 Elias Probst 2010-11-01 10:50:08 UTC
Is this due to the lacking JS support of Okular or is the support missing in Poppler?
Just stumbled upon the same Tikz animation examples and wondered what would be necessary to make Okular show them.
Comment 3 Albert Astals Cid 2010-11-01 20:37:11 UTC
poppler will read and give you the JS. Now you have to do something with it. But basically if you are serious about doing this, you should look at it yourself, this is not a 15 minutes hack
Comment 4 Manuel López-Ibáñez 2011-03-13 16:28:14 UTC
(In reply to comment #1)
> Uses JS to do the animation we don't support JS, patches welcome.

Hi Albert,

Just to clarify, what is the position of okular's devs with respect to implementing JS in okular? Are they in favour/against executing JS in Okular? Will they be happy if only enough JS is implemented to enable this feature? If so, it could be a nice GSoC project.

Perhaps latex is doing animations wrong, and it should rather use some embedded player or something else that doesn't require JS (or the other way around, okular devs think that this is the correct solution and it just needs someone to implement it).
Comment 5 Albert Astals Cid 2011-03-14 01:15:43 UTC
>>>
Just to clarify, what is the position of okular's devs with respect to
implementing JS in okular?
>>>

What part of "Patches welcome" was unclear?
Comment 6 snvv101 2011-08-22 16:05:42 UTC
(In reply to comment #4)
> (In reply to comment #1)
> > Uses JS to do the animation we don't support JS, patches welcome.
> 
> Hi Albert,
> Perhaps latex is doing animations wrong, and it should rather use some embedded
> player or something else that doesn't require JS (or the other way around,
> okular devs think that this is the correct solution and it just needs someone
> to implement it).

Hello Manuel,
You may use impressive to play videos, music & animations and to do various other tasks too. 
We can, but it would be better to have all that in okular. 
Regards
snvv
Comment 7 jordonwii 2011-12-23 16:49:13 UTC
Given that the underlying issue is Okular's lack of JS support, I believe this bug is a duplicate of bug 177473.

Also @Albert, saying that patches are welcome does not preclude the developers from having a position on an issue (#4), as I assume patches are always welcome, even if the developers are planning to fix something. ;)
Comment 8 Bernd Oliver Sünderhauf 2012-12-03 11:10:24 UTC
Confirm and track by the JS meta-bug.
Is a wishlist item though, not a bug.
Comment 9 Niels Ole Salscheider 2014-12-01 16:33:43 UTC
I had a look at the LaTeX animate package and I think that there is not that much missing to get it working now that there is basic JS support.
It seems that we need to implement the display property of JSField and the setInterval / clearInterval functions of JSApp.
Comment 10 João Netto 2019-06-13 20:45:39 UTC
*** Bug 408664 has been marked as a duplicate of this bug. ***
Comment 11 João Netto 2019-07-20 13:26:38 UTC
This is now fixed and should work with Poppler > 0.79

Link to merge request:

https://invent.kde.org/kde/okular/merge_requests/10
Comment 12 acidrums4 2020-08-30 23:20:04 UTC
This won't work with ConTeXt JS animated files, i.e. the found in http://dl.contextgarden.net/examples/euro-anim/
Comment 13 Albert Astals Cid 2020-08-31 17:29:14 UTC
You need to open a new bug
Comment 14 João Netto 2020-08-31 18:14:08 UTC
Having a quick look at the javascript code which I got with pdinfo -js PDFNAME.pdf:

https://pastebin.com/mDVysKah

We support almost every thing in this PDF. The v.value = "ON"/"OFF" which is in Walk_Field/SetField when clicked is not supported. Everything else should be properly supported. I'll take a deeper look when I have the time, for now, follow Albert recommendation and open a new bug.