1 1.) What's the cost of swftools?
3 SWFTools is free of charge, and is released under the GPL
4 (http://www.gnu.org/licenses/gpl.html).
6 2.) How to compile/link swftools on Unix/Linux/BSD?
8 Download swftools-0.x.x.tar.gz and t1lib-1.3.1.tar.gz.
10 gzip -d swftools-0.x.x.tar.gz
11 gzip -d t1lib-1.3.1.tar.gz
12 tar -xf t1lib-1.3.1.tar
18 tar -xf swftools-0.x.x.tar
24 3.) What libraries do I need to compile swftools on Unix/Linux/BSD?
26 You need t1lib, freetype and jpeglib to compile pdf2swf.
29 http://www.freetype.org
31 ftp://sunsite.unc.edu/pub/linux/libs/graphics/t1lib-1.3.1.tar.gz
32 t1lib (mirrored here):
33 http://www.quiss.org/swftools/t1lib-1.3.1.tar.gz
35 http://www.ijg.org/files/jpegsrc.v6b.tar.gz
37 Furthermore, if you want to compile avi2swf, you need the avifile library:
38 http://avifile.sourceforge.net
41 4.) when compiling the sourcecode version, configure doesn't find my jpeglib / my t1lib!
43 In case some of your libraries/include files are installed in /usr/local,
47 LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure
49 Furthermore, a new installation of jpeglib (the following assumes it's in
50 /usr/local/lib) often requires doing a
52 ranlib /usr/local/lib/libjpeg.a
53 ldconfig /usr/local/lib
55 If it still doesn't work, try removing the file "config.cache"
56 before running configure again.
58 5.) There are problems during compilation:
59 Error messages complain about "undefined reference to `operator new(unsigned)'"
60 as well as "undefined reference to `__gxx_personality_v0'".
62 Try running configure as
64 LDFLAGS=-lstdc++ ./configure
66 6.) How do I compile swftools on Mac OS X?
68 First, you need to install all the required libs (jpeg, t1lib, freetype, lame) via Fink.
69 Then, you have to inform configure of where they are:
71 ( setenv LDFLAGS "-L/sw/lib" ; setenv CPPFLAGS "-I/sw/include -I/sw/include/lame" ; ./configure )
75 7.) Is there a pdf2swf/avi2swf for Windows?
77 Windows versions of all SWF utilities are downloadable from
78 http://www.quiss.org/swftools/download.html
80 (There's a self-extracting .exe version of all versions since 0.6.1,
81 and a .zip or .rar archive of the newest development snapshot)
82 Notice: For now, the utilities need to be installed to C:\SWFTOOLS to make pdf2swf work-
83 otherwise it won't be able to find its fonts.
85 8.) Where's the source code of the Windows version?
87 It's the same as the Unix source code. If you want to compile
88 under Windows, it's recommended that you get the CVS version
90 You need MingW (http://www.mingw.org) to compile it.
91 When cross-compiling under Linux, e.g. the following generates the Windows .exe files:
93 CXX=i386-mingw32msvc-g++ CPP=i386-mingw32msvc-cpp CC=i386-mingw32msvc-gcc \
94 ./configure --host=i586-mingw32msvc && make
96 9.) The fonts in the SWFs generated by pdf2swf are wrong!
98 Watch the output of pdf2swf closely.
99 You should see something like:
101 WARNING Font Myriad-Roman could not be loaded.
102 WARNING Try putting a TTF version of that font (named "Myriad-Roman.ttf") into /swftools/fonts
104 Provided you actually own the font in question (here: Myriad-Roman.ttf),
105 you can copy that fonts into your current directory and pass
106 the "-F ./" (--fontpath ./) option to pdf2swf.
107 If you use a page in several PDFs, you can also simply copy it
108 to (on Windows) C:\SWFTools\Fonts\, or (on Unix) /usr/local/share/swftools/fonts
109 to make it work all the time.
111 10.) Can png2swf handle transparency?
113 It supports PNG mode 2 transparency (256 color palettes with alpha) since version 0.4.2.
114 Mode 6 (32 bit RGBA truecolor) is also supported since version 0.4.4.
116 11.) How to do Flash MX compression with SWFTools?
118 Most tools support the -z flag for outputting compressed SWF.
119 Furthermore you can compress/uncompress SWF files using swfcombine:
121 swfcombine -dz file.swf -o file_new.swf
125 swfcombine -d file.swf -o file_new.swf
129 12.) avi2swf converts my avi files upside down!
131 Try using the -p (--flip) switch.
133 13.) How to extract images/sounds from myfile.swf using swfextract?
135 First list all extractable items:
137 swfextract myfile.swf
139 The result is something like:
141 Objects in file myfile.swf:
143 5 MovieClips: ID(s) 4, 5, 8, 10, 12
144 3 JPEGs: ID(s) 69, 116, 447
146 3 Sounds: ID(s) 28-30
147 10 Frames: ID(s) 0-10
149 Not you can extract a shape using
151 swfextract -i 2 myfile.swf -o shape.swf
155 swfextract -s 28 myfile.swf -o sound.wav
157 a PNG image file using
159 swfextract -p 318 myfile.swf -o file.png
163 14.) Is there a mailing list for SWFTools?
165 Yes there is. You can subscribe by going to
167 http://mail.nongnu.org/mailman/listinfo/swftools-common
169 15.) Where can I donate?
171 You can donate via PayPal by clicking on the "donate" button
172 on http://www.quiss.org/swftools/index.html
174 Any financial support for this project is most welcome!