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