brought up-to-date.
[swftools.git] / FAQ
1 1.) What's the cost of swftools?
2
3     SWFTools is free of charge, and is released under the GPL
4     (http://www.gnu.org/licenses/gpl.html).
5
6 2.) How to compile/link swftools?
7
8     Download swftools-0.4.2.tar.gz and t1lib-1.3.1.tar.gz.
9
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
13     cd t1lib-1.3.1
14     ./configure
15     make 
16     make install
17     cd ..
18     tar -xf swftools-0.4.2.tar
19     cd swftools-0.4.2
20     ./configure
21     make 
22     make install
23
24 3.) configure doesn't find my jpeglib / my t1lib!
25
26     In case some of your libraries/include files are installed in /usr/local,
27     try the following:
28
29     rm -f config.cache
30     LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure
31
32     Furthermore, a new installation of jpeglib (the following assumes it's in
33     /usr/local/lib) often requires doing a
34
35     ranlib /usr/local/lib/libjpeg.a
36     ldconfig /usr/local/lib
37
38     If it still doesn't work, try removing the file "config.cache"
39     before running configure again.
40
41 4.) There are problems during compilation:
42     Error messages complain about "undefined reference to `operator new(unsigned)'"
43     as well as "undefined reference to `__gxx_personality_v0'".
44
45     Try running configure as
46
47     LDFLAGS=-lstdc++ ./configure
48
49 5.) Is there a pdf2swf for Windows?
50
51     Windows versions of all SWF utilities can be downloaded at
52         http://www.quiss.org/swftools/swftools-win32.zip
53     .
54     You need to unzip the Archive to C:\SWFTOOLS to make it work though-
55     otherwise pdf2swf won't be able to find it's fonts.
56
57 6.) Is there *going to* be a pdf2swf for Windows?
58
59     Probably. As soon as we find the time to look into the Cygwin compile issues.
60
61 7.) The fonts in the SWFs generated by pdf2swf are wrong!
62
63     Try running pdf2swf with the "-v" switch.
64     If you see a line reading "substituting VerySpecialFont -> Times-Roman", then pdf2swf
65     didn't find some fonts, which may be external references in the pdf. 
66     To fix this, copy the fonts into your current directory and pass the "-F ./" (--fontpath ./) 
67     option to pdf2swf. (This doesn't yet work with TTF, only with Type1 Fonts. You can 
68     convert TTF to Type1, however, using ttf2pt1 (http://ttf2pt1.sourceforge.net)).
69     The font files should, in this case, have the filenames VerySpecialFont.afm and
70     VerySpecialFont.pfa (.pfb).
71
72 8.) Can png2swf handle transparency?
73
74     It supports PNG mode 2 transparency (256 color palettes with alpha) since version 0.4.2. 
75     Mode 6 (32 bit RGBA truecolor) is also supported since version 0.4.4.
76
77 9.) How to do Flash MX compression with SWFTools?
78
79     Most tools support the -z flag for outputting compressed SWF.
80     Furthermore you can compress/uncompress SWF files using swfcombine:
81
82         swfcombine -dz file.swf -o file_new.swf
83
84     compresses, while
85
86         swfcombine -d file.swf -o file_new.swf
87
88     decompresses.
89
90 10.) avi2swf converts my avi files upside down!
91
92     Try using the -p (--flip) switch.
93
94 11.) How to extract images/sounds from myfile.swf using swfextract?
95
96     First list all extractable items:
97
98         swfextract myfile.swf
99     
100     The result is something like:
101
102         Objects in file myfile.swf:
103         Shapes: 1, 2, 3
104         MovieClips: 4, 5, 8, 10, 12
105         JPEGs: 69, 116, 447
106         PNGs: 318
107         Sounds: 28, 29, 30
108         Frames: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
109
110     Not you can extract a shape using
111
112         swfextract -i 2 myfile.swf -o shape.swf
113
114     a sound using
115         
116         swfextract -s 28 myfile.swf -o sound.wav
117
118     a PNG image file using
119         
120         swfextract -p 318 myfile.swf -o file.png
121
122     etc.
123
124 12.) Is there a mailing list for SWFTools?
125
126     Yes there is. You can subscribe by going to
127     
128     http://mail.nongnu.org/mailman/listinfo/swftools-common
129