Animations in pdfTeX-Generated PDF

A New Method for Directly Embedding Animation into PDF
  • Jan Holeček
  • Petr Sojka
Part of the Lecture Notes in Computer Science book series (LNCS, volume 3130)


This paper presents a new approach for creating animations in Portable Document Format (PDF). The method of animation authoring described uses free software (pdfTeX) only. The animations are viewable by any viewer that supports at least some features of Acrobat JavaScript, particularly Adobe (Acrobat) Reader, which is available at no cost for a wide variety of platforms. Furthermore, the capabilities of PDF make it possible to have a single file with animations both for interactive viewing and printing.

The paper explains the principles of PDF, Acrobat JavaScript and pdfTeX needed to create animations for Adobe Reader using no other software except pdfTeX. We present a step by step explanation of animation preparation, together with sample code, using a literate programming style. Finally, we discuss other possibilities of embedding animations into documents using open standards (SVG) and free tools, and conclude with their strengths and weaknesses with respect to the method presented.


Portable Document Format Indirect Object Scalable Vector Graphic Object Number Document Object Model 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Adobe Systems Incorporated. Acrobat JavaScript Object Specification, Version 5.1, Technical Note #5186. Technical report, Adobe (2003),
  2. 2.
    Adobe Systems Incorporated. PDF Reference: Adobe Portable Document Format Version 1.5. Addison-Wesley, Reading, MA, USA, fourth edition (August 2003)Google Scholar
  3. 3.
    Došlá, Z., Plch, R., Sojka, P.: Mathematical Analysis with Maple: 2. Infinite Series. CD-ROM (December 2002),
  4. 4.
    Goossens, M., Sivunen, V.: LATEX, SVG, Fonts. TUGboat 22(4), 269–280 (2001)Google Scholar
  5. 5.
    Hagen, H.: The Calculator Demo, Integrating TEX, METAPOST, JavaScript and PDF. TUGboat 19(3), 304–310 (1998)Google Scholar
  6. 6.
    Olšák, P.: TEXbook naruby (in Czech). Konvoj, Brno (1997)Google Scholar
  7. 7.
    Sojka, P.: Animations in PDF. In: Proceedings of the 8th Annual Conference on Innovation and Technology in Computer Science Education, ITiCSE 2003, Thessaloniki, p. 263. Association of Computing Machinery (2003)Google Scholar
  8. 8.
    Sojka, P.: Interactive Teaching Materials in PDF using JavaScript. In: Proceedings of the 8th Annual Conference on Innovation and Technology in Computer Science Education, ITiCSE 2003, Thessaloniki, p. 275, Association of Computing Machinery (2003)Google Scholar
  9. 9.
    Story, D.P.: AcroTEX: Acrobat and TEX team up. TUGboat 20(3), 196–201 (1999)Google Scholar
  10. 10.
    Story, D.P.: Techniques of introducing document-level JavaScript into a PDF file from LATEX source. TUGboat 22(3), 161–167 (2001)Google Scholar
  11. 11.
    T́hánh, H.T.: Micro-typographic extensions to the TEX typesetting system. TUGboat 21(4), 317–434 (2000)Google Scholar
  12. 12.
    W3C. Scalable Vector Graphics (SVG) 1.1 Specification (January 2003)Google Scholar
  13. 13.
    Watt, A.H.: Designing SVG Web Graphics. New Riders Publishing, Indianapolis (September 2001)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2004

Authors and Affiliations

  • Jan Holeček
    • 1
  • Petr Sojka
    • 1
  1. 1.Faculty of InformaticsMasaryk UniversityBrnoCzech Republic

Personalised recommendations