航空论坛_航空翻译_民航英语翻译_飞行翻译

标题: pdf2swf详细参数使用说明 [打印本页]

作者: 航空    时间: 2011-11-15 13:33:31     标题: pdf2swf详细参数使用说明

官方地址:http://www.swftools.org/download.html
1 N* R* y' b2 e" U* u下载6 b; r+ w2 u6 S4 N
swftools-2010-02-06-1900.exe
9 S) [6 `& g6 ~- _: O
命令行参数可以通过pdf2swf -f得到:
( I8 t) C2 R( v    * -h , –help                      Print short help message and exit              打印帮助信息+ n4 Z. O+ a4 y8 Z6 O( j
    * -V , –version                Print version info and exit                        打印版本号
5 e; w1 H; @( U- c# l, C# ]    * -o , –output file.swf         Direct output to file.swf. If file.swf contains ‘13568621′ (file13568630.swf), then each page指定输出的swf文件名, o/ o& u# e4 l* c" F/ C/ p# K
    * -p , –pages range             Convert only pages in range with range e.g. 1-20
& i6 T9 r, q+ F$ @* k' b. t      or 1,4,6,9-11 or

; u7 S6 j& ?: w( J2 j      指定转换的页面范围,使用的页码描述方法与打印机打印文件时候的选页一样* ~7 X; u% E  V5 l: m6 M, k8 @
    * -P , –password password       Use password for deciphering the pdf.指定打开pdf的密码
3 j, `9 l+ r( w1 I$ \9 ~" G6 w    * -v , –verbose                 Be verbose. Use more than one -v for greater effect.转换时输出详细的内容) m. P) }: \. n5 J& v) s7 B4 U$ z
    * -z , –zlib                    Use Flash 6 (MX) zlib compression.使用Flash 6的zlib压缩机制$ J/ ?7 |- I5 t! U/ Q# f8 I
    * -i , –ignore                  Allows pdf2swf to change the draw order of the pdf. This may make the generated允许程序修改pdf的绘制顺序,可能会导致结果与原来有差异6 @- j7 d8 p! 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。
( B  v& y; ]: u6 _    * -s , –set param=value         Set a SWF encoder specific parameter. See pdf2swf -s help for more information. 设置SWF转码时候的参数,具体参数可以用pdf2swf -s help获取! J" F8 i1 v8 N7 S
    * -w , –samewindow              When converting pdf hyperlinks, don’t make the links open a new window.        设置转换后的swf打开原pdf中的连接时使用相同的窗口
6 d' ^5 Q" Y0 M! q4 E1 g   
* -t , –stop                    Insert a stop() command in each page.            在每页结尾添加一个stop()命令. F8 u- C# z/ Q* a5 N1 i
    * -T , –flashversion num        Set Flash Version in the SWF header to num.         设置SWF所使用的flash版本号
' }4 L# ?4 }% |5 ~    * -F , –fontdir directory       Add directory to the font search path.                    指定字体文件所在路径5 `, h6 D4 M- n
    * -b , –defaultviewer           Link a standard viewer to the swf file.             指定默认的swf导航文件,用来翻页、放大缩小等等$ u* w' v- A' G
    * -l , –defaultloader           Link a standard preloader to the swf file which will be displayed while the main swf is loading.     指定默认的swf加载文件,用来显示加载进程效果
1 |4 u* D/ X# Z+ _9 n6 I    * -B , –viewer filename         Link viewer filename to the swf file.   指定swf导航文件,作用同-b
* k3 l6 [" r8 P4 \: U6 q9 s    * -L , –preloader filename      Link preloader filename to the swf file.      指定swf加载文件,作用同-l
& O# r2 W5 f5 T7 [+ x9 k    * -q , –quiet                   Suppress normal messages. Use -qq to suppress warnings, also. 不打印普通信息,用-qq就不打印警告信息。
5 [1 Z) R" w8 \" x3 I. O) P) J    * -S , –shapes                  Don’t use SWF Fonts, but store everything as shape. 不使用字体,所有都转为形状。
5 C/ |3 I; p& }7 D4 |    * -f , –fonts                   Store full fonts in SWF. (Don’t reduce to used characters). 在swf中保存全部字体。! D/ x5 m3 J9 j$ ~1 p" ]7 p/ @5 x
    * -G , –flatten                 Remove as many clip layers from file as possible. 在文件中尽量去除影片层,合并它们6 e" M3 H( T5 f8 }) K0 v$ O
    * -I , –info                    Don’t do actual conversion, just display a list of all pages in the PDF. 不做实际转换,仅显示PDF的信息。
! H. w* K& r# K4 A$ b9 y' O5 O5 E    * -Q , –maxtime n               Abort conversion after n seconds. Only available on Unix. 如果运行时间超时则退出。

& l( c1 l2 U7 a然后看看-s都可以设置些什么:) _. y5 I: S* O! A' d- o$ w
PDF Parameters:+ I1 `* Z$ Q+ E/ L' J
PDF device global parameters:5 @! ?. n  W9 K( B, h/ |
fontdir= a directory with additional fonts 指定字体目录, 与1级参数的-F相若
# _2 ]& E3 c) c2 G5 Zfont= an additional font filename 增加额外的字体文件2 U( N8 O. d2 L# {, O4 c" |
pages= the range of pages to convert (example: pages=1-100,210-) 指定页面范围,与1级参数的-p相若6 A9 E% E# y$ e' y" v. y
zoom= the resolution (default: 72) 指定分辨率,默认为72dpi6 a" Q9 q6 X  h/ {! @- V
languagedir= Add an xpdf language directory 增加一个xpdf的语言目录,对非西欧字符有用
! f/ V6 l- [7 n' s/ `6 fmultiply= Render everything at the resolution 在几倍分辨率下渲染0 K7 ?& U" |# M
poly2bitmap Convert graphics to bitmaps 把其中的图形转成点阵/ t- p  k9 i; K% r9 v
bitmap Convert everything to bitmaps 把所有内容转成点阵(包括字体)

. _, l/ w8 Q# G1 y: u1 V- C" W* NSWF Parameters:4 f; N2 j; C+ O  A. W8 z0 g
SWF layer options:4 K6 t3 W( }' M7 s% e/ n
jpegsubpixels=<pixels> resolution adjustment for jpeg images (same as jpegdpi, but in pixels) jpeg图片的分辨率
  k! r6 K5 P" |) M0 n, i9 v% U4 jppmsubpixels=<pixels> resolution adjustment for lossless images (same asppmdpi, but in pixels) 无损图片的分辨率
& |' d# |7 p$ I& s/ G- Lsubpixels=<pixels>     shortcut for setting both jpegsubpixels and ppmsubpixels 快速设置上两个参数
0 }- E5 `/ d( F% o% w9 v8 X  jdrawonlyshapes           convert everything to shapes (currently broken) 所有都转成图形, E/ S& k  s7 r- g+ i+ P% }; u
ignoredraworder         allow to perform a few optimizations for creating smaller SWFs 允许执行一些小优化# T9 D9 U6 K, w7 `
linksopennewwindow   make links open a new browser window 链接打开新窗口( N+ c. Z9 v# r' j( h8 X1 W
linktarget                  target window name of new links       新链接窗口的名称
! q8 K1 p: n) h. w9 O& e8 p( }6 glinkcolor=<color)        color of links (format: RRGGBBAA)    链接的颜色' c* G3 h5 I9 ?5 c& h
linknameurl         Link buttons will be named like the URL they refer to (handy for iterating through links with actionscript)   链接名称与链接URL一致
1 e# M+ L2 P* j3 ]storeallcharacters      don’t reduce the fonts to used characters in the output file 保存所有的字符字体
* H# F9 Z- d0 v! a% Venablezlib                switch on zlib compression (also done if flashversion>=7) 使用zlib压缩5 o6 F& A% J# O5 U7 X, |/ o7 ^
bboxvars                 store the bounding box of the SWF file in actionscript variables 在as中保存swf的区域大小
0 n$ q" T1 i* l; y, c5 Gdots                        Take care to handle dots correctly 保存单点显示
! E1 v4 ~$ g! K$ X! I( R, R1 U, ?reordertags=0/1     (default: 1) perform some tag optimizations 执行某些tag优化
6 [0 P0 w! v' k  finternallinkfunction=<name> when the user clicks a internal link (to a different page) in the converted file, this actionscript function is called 内部链接函数,如果点击一个内部链接,将调用该actionscript函数/ A0 k) X- ^/ s- u9 B: [8 @0 }
externallinkfunction=<name> when the user clicks an external link (e.g.
http://www.foo.bar/) on the converted file, this actionscript function is called 外部链接函数,如果点击一个外部链接,将调用该actionscript函数/ Y4 F7 F# K: L7 x# x7 X
disable_polygon_conversion never convert strokes to polygons (will remove capstyles and joint styles) 不要将笔画转成多边形
4 h$ G) w0 J2 f: @2 g% mcaplinewidth=<width>        the minimum thichness a line needs to have so that capstyles become visible (and are converted)           线条最低转换宽度,比这个细的线条将不转换! Q* l; C& Q7 R) D
insertstop                  put an ActionScript “STOP” tag in every frame 在swf的每个桢中添加stop()函数& s. c4 C' m2 @0 ~5 C2 Q9 g
protect                     add a “protect” tag to the file, to prevent loadingin the Flash editor 增加protect标签,禁止在flash中加载该swf, w# n; G1 P0 |
flashversion=<version> the SWF fileversion (6) 设置最低swf版本
* j. m/ d, }, b9 }# b; vframerate=<fps>         SWF framerate 设置桢率& b4 `( h8 m1 i, m; P
minlinewidth=<width> convert horizontal/vertical boxes smaller than thiswidth to lines (0.05)将宽度少于某值的矩形转成线条
- K5 ]0 V" V& n/ h, K6 k# Gsimpleviewer     Add next/previous buttons to the SWF 使用简单的导航  I: A- b5 y4 f2 R
animate           insert a showframe tag after each placeobject (animate draw order of PDF files) ???8 `& z- m& P$ b8 t, c
jpegquality=<quality> set compression quality of jpeg images 设置jpeg的压缩质量2 M- R1 j8 a7 e& K
splinequality=<value> Set the quality of spline convertion to value (0-100, default: 100). 设置样条曲线的转换质量- B) h* L8 ]' S2 r
disablelinks                Disable links. 禁止链接
; L' a& I) g" [  M





欢迎光临 航空论坛_航空翻译_民航英语翻译_飞行翻译 (http://bbs.aero.cn/) Powered by Discuz! X2