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

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

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

官方地址:http://www.swftools.org/download.html
" f5 N' [. B) s1 @1 `. a% V下载) X3 F" X# L; f, g' p: Q
swftools-2010-02-06-1900.exe

6 `8 N5 c6 G' ?) `" P6 ?! Q命令行参数可以通过pdf2swf -f得到:; H* {2 K0 H( Z- n% M
    * -h , –help                      Print short help message and exit              打印帮助信息! U4 R/ w6 W& g0 x
    * -V , –version                Print version info and exit                        打印版本号
) x3 G: _2 t* A2 c7 H    * -o , –output file.swf         Direct output to file.swf. If file.swf contains ‘13568621′ (file13568630.swf), then each page指定输出的swf文件名! o! P9 G0 a" L* Z& {( U
    * -p , –pages range             Convert only pages in range with range e.g. 1-20
9 j7 s0 a# |7 M! N7 c: W      or 1,4,6,9-11 or

+ S% z! _) P; m  ?$ ?: D      指定转换的页面范围,使用的页码描述方法与打印机打印文件时候的选页一样! I: V' \1 i3 B1 m7 R
    * -P , –password password       Use password for deciphering the pdf.指定打开pdf的密码0 s5 c. {) U1 {) `2 B0 g
    * -v , –verbose                 Be verbose. Use more than one -v for greater effect.转换时输出详细的内容: \3 A* v8 s! Q2 ^$ H4 \, \5 i
    * -z , –zlib                    Use Flash 6 (MX) zlib compression.使用Flash 6的zlib压缩机制
8 a& E' H! f) v3 k' a/ W/ A    * -i , –ignore                  Allows pdf2swf to change the draw order of the pdf. This may make the generated允许程序修改pdf的绘制顺序,可能会导致结果与原来有差异
1 O' |1 I0 k. I  K0 i- W8 C* Y    * -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。" n  V7 d6 \: x2 s4 x0 L; H( N
    * -s , –set param=value         Set a SWF encoder specific parameter. See pdf2swf -s help for more information. 设置SWF转码时候的参数,具体参数可以用pdf2swf -s help获取8 u3 ^" ]  f7 g
    * -w , –samewindow              When converting pdf hyperlinks, don’t make the links open a new window.        设置转换后的swf打开原pdf中的连接时使用相同的窗口0 z$ k& h9 e5 P
   
* -t , –stop                    Insert a stop() command in each page.            在每页结尾添加一个stop()命令: v4 x3 t  }: h$ s
    * -T , –flashversion num        Set Flash Version in the SWF header to num.         设置SWF所使用的flash版本号
$ e: u" v  [% B/ [! y2 X1 Y& T    * -F , –fontdir directory       Add directory to the font search path.                    指定字体文件所在路径
! K5 B: |6 j9 M/ P% R  g    * -b , –defaultviewer           Link a standard viewer to the swf file.             指定默认的swf导航文件,用来翻页、放大缩小等等8 x, m- |/ {9 Z: l$ t
    * -l , –defaultloader           Link a standard preloader to the swf file which will be displayed while the main swf is loading.     指定默认的swf加载文件,用来显示加载进程效果. A+ W, t8 P3 A# B8 N
    * -B , –viewer filename         Link viewer filename to the swf file.   指定swf导航文件,作用同-b/ P. z0 P% }( S) c" X3 D
    * -L , –preloader filename      Link preloader filename to the swf file.      指定swf加载文件,作用同-l
9 n% D: c3 f$ h( e    * -q , –quiet                   Suppress normal messages. Use -qq to suppress warnings, also. 不打印普通信息,用-qq就不打印警告信息。) Q' F1 o2 ?' `% j$ T: \
    * -S , –shapes                  Don’t use SWF Fonts, but store everything as shape. 不使用字体,所有都转为形状。
( D& P! S/ k- W5 P: e+ }" Z    * -f , –fonts                   Store full fonts in SWF. (Don’t reduce to used characters). 在swf中保存全部字体。
9 s( A" y2 O; A0 G    * -G , –flatten                 Remove as many clip layers from file as possible. 在文件中尽量去除影片层,合并它们
& _5 H2 m4 R% s9 ~% ~: b9 m, L    * -I , –info                    Don’t do actual conversion, just display a list of all pages in the PDF. 不做实际转换,仅显示PDF的信息。; E" @9 {# k& h7 t: _
    * -Q , –maxtime n               Abort conversion after n seconds. Only available on Unix. 如果运行时间超时则退出。
1 U7 G, {0 z+ c$ T) I
然后看看-s都可以设置些什么:" m+ j( w1 M( E: R# i  G# l; C
PDF Parameters:. H6 V4 ?7 N6 i4 Z. y4 G4 P/ w* V
PDF device global parameters:
; h& [+ Z' @; p& gfontdir= a directory with additional fonts 指定字体目录, 与1级参数的-F相若# j4 m% ~  H  I# o& J$ \
font= an additional font filename 增加额外的字体文件
! s* t( H, ]1 n, Ppages= the range of pages to convert (example: pages=1-100,210-) 指定页面范围,与1级参数的-p相若
: l( \! M* g( y* \5 Yzoom= the resolution (default: 72) 指定分辨率,默认为72dpi
; A. I: J9 r, ]* H# {languagedir= Add an xpdf language directory 增加一个xpdf的语言目录,对非西欧字符有用8 ?: B" p( Y) ?3 u7 F
multiply= Render everything at the resolution 在几倍分辨率下渲染
$ X( A# ^5 {, O/ ?poly2bitmap Convert graphics to bitmaps 把其中的图形转成点阵
4 j, h; ^0 f# H; v8 G" i' ]bitmap Convert everything to bitmaps 把所有内容转成点阵(包括字体)

" U( w0 q7 {/ ]# q" cSWF Parameters:
2 c; G2 b' P/ QSWF layer options:
, K1 q! N' _% D8 M2 d& ijpegsubpixels=<pixels> resolution adjustment for jpeg images (same as jpegdpi, but in pixels) jpeg图片的分辨率6 v. \  [( v0 E) A( F4 y
ppmsubpixels=<pixels> resolution adjustment for lossless images (same asppmdpi, but in pixels) 无损图片的分辨率
! l, R: ^8 C" a; P* Hsubpixels=<pixels>     shortcut for setting both jpegsubpixels and ppmsubpixels 快速设置上两个参数
& V3 K( D4 u+ A* V' M! Fdrawonlyshapes           convert everything to shapes (currently broken) 所有都转成图形% R/ o4 ?( {% F9 o5 c
ignoredraworder         allow to perform a few optimizations for creating smaller SWFs 允许执行一些小优化
' l. j$ e1 X- v# S4 Q. K- ~linksopennewwindow   make links open a new browser window 链接打开新窗口
4 z9 O4 [  f0 G2 hlinktarget                  target window name of new links       新链接窗口的名称
' y/ S) f. p' E' J! ilinkcolor=<color)        color of links (format: RRGGBBAA)    链接的颜色3 \2 P' W' j" u, u; P
linknameurl         Link buttons will be named like the URL they refer to (handy for iterating through links with actionscript)   链接名称与链接URL一致4 P  L7 ?' l' T: G8 d2 X9 e
storeallcharacters      don’t reduce the fonts to used characters in the output file 保存所有的字符字体3 x2 r' S2 H( c) ^$ @4 O
enablezlib                switch on zlib compression (also done if flashversion>=7) 使用zlib压缩' D3 L* a3 b! R  {
bboxvars                 store the bounding box of the SWF file in actionscript variables 在as中保存swf的区域大小; U3 t; x* p. x6 I/ a1 I& ]
dots                        Take care to handle dots correctly 保存单点显示
; b9 u8 o9 {# v% S7 z7 kreordertags=0/1     (default: 1) perform some tag optimizations 执行某些tag优化
% ^2 n- i' L6 V( k* [% w& zinternallinkfunction=<name> when the user clicks a internal link (to a different page) in the converted file, this actionscript function is called 内部链接函数,如果点击一个内部链接,将调用该actionscript函数9 p  y8 X% C" V, m9 d% ]" h
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函数
4 f6 d  F  \2 [disable_polygon_conversion never convert strokes to polygons (will remove capstyles and joint styles) 不要将笔画转成多边形7 S, X4 L4 B6 J1 Y9 g
caplinewidth=<width>        the minimum thichness a line needs to have so that capstyles become visible (and are converted)           线条最低转换宽度,比这个细的线条将不转换
4 E& Y- F- d! K  [" o* m8 m- X) N6 Einsertstop                  put an ActionScript “STOP” tag in every frame 在swf的每个桢中添加stop()函数- l8 v6 y% W% b; ]8 b% ?$ P2 [
protect                     add a “protect” tag to the file, to prevent loadingin the Flash editor 增加protect标签,禁止在flash中加载该swf
# q  @, |) ~5 |! q8 mflashversion=<version> the SWF fileversion (6) 设置最低swf版本
/ c7 J( P. m) l) Aframerate=<fps>         SWF framerate 设置桢率1 m. U+ L9 M. d( F7 U5 w! t
minlinewidth=<width> convert horizontal/vertical boxes smaller than thiswidth to lines (0.05)将宽度少于某值的矩形转成线条
; Q1 e/ J  d" z; Qsimpleviewer     Add next/previous buttons to the SWF 使用简单的导航
  _* v- U7 {3 g; n- I' Y  ganimate           insert a showframe tag after each placeobject (animate draw order of PDF files) ???; J& v! O6 N# O: P- w' S# Q
jpegquality=<quality> set compression quality of jpeg images 设置jpeg的压缩质量
$ ~4 y3 f% X5 Z; S- gsplinequality=<value> Set the quality of spline convertion to value (0-100, default: 100). 设置样条曲线的转换质量/ R+ Z9 a7 e% d$ r. E8 V" L4 {$ ^) F
disablelinks                Disable links. 禁止链接

9 j6 d% E! ~8 z6 }# w




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