SWFTools


SWFTools is an open source software tool suite for creating and manipulating SWF files. Distributed under the terms of the GNU General Public License, it may be compiled from C source, to run under Linux, Microsoft Windows, and Apple OS X. On Microsoft Windows systems, the pre-compiled installer also installs a GUI wrapper for the suite's PDF to SWF conversion tool, pdf2swf.
SWFTools relies upon, and links against, additional third-party libraries for some of its functionality, e.g. Xpdf, PDFlib, freetype, and libjpeg.

Tools

The current stable SWFTools suite, version 0.9.2, consists of the following components:
ComponentBrief Description
as3compileA standalone ActionScript 3.0 compiler.
avi2swfAVI animation files to SWF converter.
font2swfFont file conversion to SWF.
gif2swfGIFs to SWF conversion. Able to handle animated gifs.
jpeg2swfGenerates a slideshow from one or more JPEG pictures. Supports motion estimation compression for better compression of video sequences.
pdf2swfPDF to SWF Converter. Generates one frame per page. Enables fully formatted text, ::including tables and formulas, inside a Flash Movie. It is based on the xpdf PDF parser from ::Derek B. Noonburg.
png2swfLike JPEG2SWF, only for PNGs.
swfbboxAllows reading, optimizing and readjusting SWF bounding boxes.
swfcSWF file creation from simple script files. Includes ActionScript 2.0/3.0 support.
swfcombineMulti-function tool for SWF insertion into Wrapper SWFs, SWF concatenation, stacking, and basic parameter manipulation.
swfdumpPrints out SWF information, i.e. images/fonts/sounds, contained code disassembly, cross-reference and bounding box data.
swfextractSWF element extraction: Movieclips, Sounds, Images, shapes, etc.
swfrenderBitmap rendering from swf files created with pdf2swf, jpeg2swf or png2swf.
swfstringsScans SWFs for text data.
wav2swfWAV audio to SWF conversion.

Extra and/or adapted commands are available in the development versions and the Git repository.
The SWFTools suite also includes a Python gFX API library, consisting of a PDF parser and a number of rendering back-ends. Using the API, one can extract text from PDF pages, create bitmaps from PDF, and convert PDF files to SWF. The latter functionality is similar to that offered by the standalone pdf2swf utility detailed above, but more powerful: the API can create individual SWF files from single PDF pages, or composite pages from different PDF files.