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?
8 Download swftools-0.4.2.tar.gz and t1lib-1.3.1.tar.gz.
10 gzip -d swftools-0.4.2.tar.gz
11 gzip -d t1lib-1.3.1.tar.gz
12 tar -xf t1lib-1.3.1.tar
18 tar -xf swftools-0.4.2.tar
24 3.) What libraries do I need to compile swftools?
26 You need t1lib and jpeglib to compile pdf2swf.
29 ftp://sunsite.unc.edu/pub/linux/libs/graphics/t1lib-1.3.1.tar.gz
30 t1lib (mirrored here):
31 http://www.quiss.org/swftools/t1llib-1.3.1.tar.gz
33 http://www.ijg.org/files/jpegsrc.v6b.tar.gz
35 Furthermore, if you want to compile avi2swf, you need the avifile library:
36 http://avifile.sourceforge.net
39 4.) configure doesn't find my jpeglib / my t1lib!
41 In case some of your libraries/include files are installed in /usr/local,
45 LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure
47 Furthermore, a new installation of jpeglib (the following assumes it's in
48 /usr/local/lib) often requires doing a
50 ranlib /usr/local/lib/libjpeg.a
51 ldconfig /usr/local/lib
53 If it still doesn't work, try removing the file "config.cache"
54 before running configure again.
56 5.) There are problems during compilation:
57 Error messages complain about "undefined reference to `operator new(unsigned)'"
58 as well as "undefined reference to `__gxx_personality_v0'".
60 Try running configure as
62 LDFLAGS=-lstdc++ ./configure
64 6.) Is there a pdf2swf for Windows?
66 Windows versions of all SWF utilities (except for avi2swf) are in
67 http://www.quiss.org/swftools/swftools-win32.zip
69 Notice: You need to unzip the Archive to C:\SWFTOOLS to make pdf2swf work-
70 otherwise it won't be able to find it's fonts.
72 7.) The fonts in the SWFs generated by pdf2swf are wrong!
74 Try running pdf2swf with the "-v" switch.
75 If you see a line reading "substituting VerySpecialFont -> Times-Roman", then pdf2swf
76 didn't find some fonts, which may be external references in the pdf.
77 To fix this, copy the fonts into your current directory and pass the "-F ./" (--fontpath ./)
78 option to pdf2swf. (This doesn't yet work with TTF, only with Type1 Fonts. You can
79 convert TTF to Type1, however, using ttf2pt1 (http://ttf2pt1.sourceforge.net)).
80 The font files should, in this case, have the filenames VerySpecialFont.afm and
81 VerySpecialFont.pfa (.pfb).
83 8.) Can png2swf handle transparency?
85 It supports PNG mode 2 transparency (256 color palettes with alpha) since version 0.4.2.
86 Mode 6 (32 bit RGBA truecolor) is also supported since version 0.4.4.
88 9.) How to do Flash MX compression with SWFTools?
90 Most tools support the -z flag for outputting compressed SWF.
91 Furthermore you can compress/uncompress SWF files using swfcombine:
93 swfcombine -dz file.swf -o file_new.swf
97 swfcombine -d file.swf -o file_new.swf
101 10.) avi2swf converts my avi files upside down!
103 Try using the -p (--flip) switch.
105 11.) How to extract images/sounds from myfile.swf using swfextract?
107 First list all extractable items:
109 swfextract myfile.swf
111 The result is something like:
113 Objects in file myfile.swf:
115 MovieClips: 4, 5, 8, 10, 12
119 Frames: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
121 Not you can extract a shape using
123 swfextract -i 2 myfile.swf -o shape.swf
127 swfextract -s 28 myfile.swf -o sound.wav
129 a PNG image file using
131 swfextract -p 318 myfile.swf -o file.png
135 12.) Is there a mailing list for SWFTools?
137 Yes there is. You can subscribe by going to
139 http://mail.nongnu.org/mailman/listinfo/swftools-common