- 注册时间
- 2009-12-25
- 最后登录
- 2021-7-10
- 在线时间
- 3302 小时
- 阅读权限
- 200
- 积分
- 10
- 帖子
- 13416
- 精华
- 1
- UID
- 2036
|
官方地址:http://www.swftools.org/download.html
* B1 Y' Z& A2 @( y6 M下载* h7 B) T' ]6 [, m# g
swftools-2010-02-06-1900.exe1 R. b5 |6 L) r( Q" T3 w
命令行参数可以通过pdf2swf -f得到:1 N y1 C$ c1 b, B% C) c/ d
* -h , –help Print short help message and exit 打印帮助信息
. C# V$ p# Z6 X0 q) P! ~0 F7 p& O1 D2 k * -V , –version Print version info and exit 打印版本号
4 B$ [4 b7 a0 { * -o , –output file.swf Direct output to file.swf. If file.swf contains ‘13568621′ (file13568630.swf), then each page指定输出的swf文件名
/ \8 K% o4 U& C/ B: Y * -p , –pages range Convert only pages in range with range e.g. 1-20
7 Q- _8 Z1 E- L' L9 u4 Q6 b or 1,4,6,9-11 or
2 k1 o, I7 p- s+ S8 N 指定转换的页面范围,使用的页码描述方法与打印机打印文件时候的选页一样 d( ]+ ~! D8 t3 O Q9 a
* -P , –password password Use password for deciphering the pdf.指定打开pdf的密码
/ G0 g% g t: q7 z * -v , –verbose Be verbose. Use more than one -v for greater effect.转换时输出详细的内容
& w, F. |9 d% ?2 U1 G0 n5 M# C * -z , –zlib Use Flash 6 (MX) zlib compression.使用Flash 6的zlib压缩机制
% ^6 ?$ m: n3 j * -i , –ignore Allows pdf2swf to change the draw order of the pdf. This may make the generated允许程序修改pdf的绘制顺序,可能会导致结果与原来有差异% q5 z7 m" Q) j; a' I$ z
* -j , –jpegquality quality Set quality of embedded jpeg pictures to quality. 0 is worst (small), 100 is best (big). (default:85)设置转换其中的jpeg图片的质量,从0到100,默认值是85。$ d- W2 J% r# }' g( W, R$ a
* -s , –set param=value Set a SWF encoder specific parameter. See pdf2swf -s help for more information. 设置SWF转码时候的参数,具体参数可以用pdf2swf -s help获取8 L+ A- Q9 ]& O
* -w , –samewindow When converting pdf hyperlinks, don’t make the links open a new window. 设置转换后的swf打开原pdf中的连接时使用相同的窗口! c+ y! W. A9 L6 L
* -t , –stop Insert a stop() command in each page. 在每页结尾添加一个stop()命令% p: C8 q4 q# F* p2 H Y8 I
* -T , –flashversion num Set Flash Version in the SWF header to num. 设置SWF所使用的flash版本号
7 a" B3 w7 p# d. I( o" n+ c* x * -F , –fontdir directory Add directory to the font search path. 指定字体文件所在路径
" E1 i; u9 v2 l/ e * -b , –defaultviewer Link a standard viewer to the swf file. 指定默认的swf导航文件,用来翻页、放大缩小等等
2 O; I" M; O6 T" v2 A+ q6 w: y * -l , –defaultloader Link a standard preloader to the swf file which will be displayed while the main swf is loading. 指定默认的swf加载文件,用来显示加载进程效果
8 o+ Z6 J- ?6 d+ d } * -B , –viewer filename Link viewer filename to the swf file. 指定swf导航文件,作用同-b
" h2 s4 u3 N1 B/ `% C! ]) L5 d * -L , –preloader filename Link preloader filename to the swf file. 指定swf加载文件,作用同-l
( p" ^" m. m! Z; _ * -q , –quiet Suppress normal messages. Use -qq to suppress warnings, also. 不打印普通信息,用-qq就不打印警告信息。
) A( Z" L5 h. {5 S5 _ * -S , –shapes Don’t use SWF Fonts, but store everything as shape. 不使用字体,所有都转为形状。$ p: X2 G, q: t# C& h
* -f , –fonts Store full fonts in SWF. (Don’t reduce to used characters). 在swf中保存全部字体。1 _. k: a8 b+ y+ Q
* -G , –flatten Remove as many clip layers from file as possible. 在文件中尽量去除影片层,合并它们
8 {3 K. Z8 B1 @6 {8 l9 _% u * -I , –info Don’t do actual conversion, just display a list of all pages in the PDF. 不做实际转换,仅显示PDF的信息。
9 Q, O D7 V; g! J+ }* q0 D9 N/ B q * -Q , –maxtime n Abort conversion after n seconds. Only available on Unix. 如果运行时间超时则退出。6 \3 F1 g+ ^+ t) E9 X* |" x5 l
然后看看-s都可以设置些什么:/ h5 P, F# _2 Q! Q+ u5 S2 h# R: r
PDF Parameters:) y$ ~! J) O1 t
PDF device global parameters:! t' i' I0 C5 Z/ G. E
fontdir= a directory with additional fonts 指定字体目录, 与1级参数的-F相若* a( I8 v2 O/ q
font= an additional font filename 增加额外的字体文件
5 t' M1 [) i, n7 a( E% L/ Z8 l4 rpages= the range of pages to convert (example: pages=1-100,210-) 指定页面范围,与1级参数的-p相若
m+ d1 P/ V+ F& u( rzoom= the resolution (default: 72) 指定分辨率,默认为72dpi
2 k" b8 {' }: m2 z0 m2 u2 Dlanguagedir= Add an xpdf language directory 增加一个xpdf的语言目录,对非西欧字符有用- d: {" u/ p" M. Z# ^
multiply= Render everything at the resolution 在几倍分辨率下渲染
2 K, O% k: @3 B1 wpoly2bitmap Convert graphics to bitmaps 把其中的图形转成点阵7 L2 S8 }7 Q/ s2 t" k4 C
bitmap Convert everything to bitmaps 把所有内容转成点阵(包括字体)
0 e; m) ?9 [7 k5 n: U$ T7 BSWF Parameters:
" m$ [0 z0 ^- f' N n9 OSWF layer options:
6 v% e( e# R3 ]jpegsubpixels=<pixels> resolution adjustment for jpeg images (same as jpegdpi, but in pixels) jpeg图片的分辨率 W7 {( ^7 P; N& `8 O9 }/ U
ppmsubpixels=<pixels> resolution adjustment for lossless images (same asppmdpi, but in pixels) 无损图片的分辨率7 b/ }3 u6 U; b2 r
subpixels=<pixels> shortcut for setting both jpegsubpixels and ppmsubpixels 快速设置上两个参数* ]9 U- a; z a' r! L
drawonlyshapes convert everything to shapes (currently broken) 所有都转成图形
( o( S% h/ B" B* gignoredraworder allow to perform a few optimizations for creating smaller SWFs 允许执行一些小优化, v- B/ {2 Q$ {9 P9 f
linksopennewwindow make links open a new browser window 链接打开新窗口
! I! c& f3 o! Elinktarget target window name of new links 新链接窗口的名称4 p8 Z c8 Y+ F; b
linkcolor=<color) color of links (format: RRGGBBAA) 链接的颜色+ ^3 ^& C' [& \, y4 v
linknameurl Link buttons will be named like the URL they refer to (handy for iterating through links with actionscript) 链接名称与链接URL一致
: G/ c% v: t! F- e5 bstoreallcharacters don’t reduce the fonts to used characters in the output file 保存所有的字符字体
8 S4 n/ [" m: d' B/ z$ Henablezlib switch on zlib compression (also done if flashversion>=7) 使用zlib压缩# b" o! {9 v5 T; C# a2 |0 ~3 _7 T
bboxvars store the bounding box of the SWF file in actionscript variables 在as中保存swf的区域大小
9 Y' |; `, \4 B, k. ~dots Take care to handle dots correctly 保存单点显示
" R; [+ Z' q @7 _; {reordertags=0/1 (default: 1) perform some tag optimizations 执行某些tag优化
, t# Y4 x. G$ Sinternallinkfunction=<name> when the user clicks a internal link (to a different page) in the converted file, this actionscript function is called 内部链接函数,如果点击一个内部链接,将调用该actionscript函数
' _6 l$ z& ~. wexternallinkfunction=<name> when the user clicks an external link (e.g. http://www.foo.bar/) on the converted file, this actionscript function is called 外部链接函数,如果点击一个外部链接,将调用该actionscript函数
9 x* i; \* v$ ldisable_polygon_conversion never convert strokes to polygons (will remove capstyles and joint styles) 不要将笔画转成多边形
" `$ _5 t0 S. Q1 ~! O* Vcaplinewidth=<width> the minimum thichness a line needs to have so that capstyles become visible (and are converted) 线条最低转换宽度,比这个细的线条将不转换
6 r& w" H5 O, t- _& o" Einsertstop put an ActionScript “STOP” tag in every frame 在swf的每个桢中添加stop()函数) Q! _* W6 J) g3 k/ \
protect add a “protect” tag to the file, to prevent loadingin the Flash editor 增加protect标签,禁止在flash中加载该swf
1 J% }# e. F# wflashversion=<version> the SWF fileversion (6) 设置最低swf版本; a* `! o" b3 J9 e+ S) j) A3 m' O
framerate=<fps> SWF framerate 设置桢率% a( Q4 m7 m X1 R/ T
minlinewidth=<width> convert horizontal/vertical boxes smaller than thiswidth to lines (0.05)将宽度少于某值的矩形转成线条
# z" g* r0 g7 w" P" F5 M- _5 R5 j; `simpleviewer Add next/previous buttons to the SWF 使用简单的导航
- {( K- ]: }% [# ?( k: Canimate insert a showframe tag after each placeobject (animate draw order of PDF files) ???
& S- K( x: X8 h& _6 e2 H& qjpegquality=<quality> set compression quality of jpeg images 设置jpeg的压缩质量# R, b w6 ]* H2 {( O" {4 K9 N
splinequality=<value> Set the quality of spline convertion to value (0-100, default: 100). 设置样条曲线的转换质量6 A5 \4 Z- C% r( U
disablelinks Disable links. 禁止链接
, X( H# Z. ?. y1 {# V9 { |
|