* added new files from ttf2pt1 3.4.3
[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     LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure
30
31     Furthermore, a new installation of jpeglib (the following assumes it's in
32     /usr/local/lib) often requires doing a
33
34     ranlib /usr/local/lib/libjpeg.a
35     ldconfig /usr/local/lib
36
37 4.) Is there a pdf2swf for Windows?
38
39     No. pdf2swf only runs on Unix platforms, like Linux, *BSD, MacOS X, etc.
40     There have been some reports on more or less successfully compling pdf2swf on Win32 using
41     Cygwin (http://sources.redhat.com/cygwin), however, there's no working version yet.
42
43     If you want to use pdf2swf, find a Unix machine.
44
45 5.) Is there *going to* be a pdf2swf for Windows?
46
47     Probably. As soon as we find the time to look into the Cygwin compile issues.
48
49 6.) The fonts in the SWFs generated by pdf2swf are wrong!
50
51     Try running pdf2swf with the "-v" switch.
52     If you see a line reading "substituting VerySpecialFont -> Times-Roman", then pdf2swf
53     didn't find some fonts, which may be external references in the pdf. 
54     To fix this, copy the fonts into your current directory and pass the "-F ./" (--fontpath ./) 
55     option to pdf2swf. (This doesn't yet work with TTF, only with Type1 Fonts. You can 
56     convert TTF to Type1, however, using ttf2pt1 (http://ttf2pt1.sourceforge.net)).
57     The font files should, in this case, have the filenames VerySpecialFont.afm and
58     VerySpecialFont.pfa (.pfb).
59
60 7.) Can png2swf handle transparency?
61
62     It supports PNG mode 2 transparency (256 color palettes with alpha) since version 0.4.2. 
63     Mode 6 (32 bit RGBA truecolor) is also supported since version 0.4.4.
64
65 8.) How to do Flash MX compression with SWFTools?
66
67     Most tools support the -z flag for outputting compressed SWF.
68     Furthermore you can compress/uncompress SWF files using swfcombine:
69
70         swfcombine -dz file.swf -o file_new.swf
71
72     compresses, while
73
74         swfcombine -d file.swf -o file_new.swf
75
76     decompresses.
77
78 9.) avi2swf converts my avi files upside down!
79
80     Try using the -p (--flip) switch.
81
82 10.) How to extract images/sounds from myfile.swf using swfextract?
83
84     First list all extractable items:
85
86         swfextract myfile.swf
87     
88     The result is something like:
89
90         Objects in file myfile.swf:
91         Shapes: 1, 2, 3
92         MovieClips: 4, 5, 8, 10, 12
93         JPEGs: 69, 116, 447
94         PNGs: 318
95         Sounds: 28, 29, 30
96         Frames: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
97
98     Not you can extract a shape using
99
100         swfextract -i 2 myfile.swf -o shape.swf
101
102     a sound using
103         
104         swfextract -s 28 myfile.swf -o sound.wav
105
106     a PNG image file using
107         
108         swfextract -p 318 myfile.swf -o file.png
109
110     etc.
111
112 11.) Is there a mailing list for SWFTools?
113
114     There used to be, however it was shut down due to lack of traffic. The archive
115     is available as raw INBOX file on http://www.quiss.org/swftools/list.tar.gz .
116