This function opens a graphical device first to generate a sequence of images
expr, then makes use of the commands in SWFTools
pdf2swf) to convert these
images to a single Flash animation.
an expression to generate animations; use either the animation
file name of the Flash file
the base file name of the sequence of images (without any format or extension)
the path of SWFTools, e.g. ‘C:/swftools’. This argument
is to make sure that
other arguments passed to
An integer indicating failure (-1) or success (0) of the converting
Please download and install the SWFTools before using this function: http://www.swftools.org
We can also set the path to SWF Tools by
ani.options('ani.type') can only be one of
Also note that PDF graphics can be compressed using qpdf or Pdftk (if
either one is installed and
ani.options('pdftk') has been set); see
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.