首先看官网教程:
pdf2swf -s - Set a SWF encoder specific parameter
Usage: ./pdf2swf -s [option][=value] input.pdf -o output.swf
代码语言:javascript复制 [switches]代码语言:javascript复制PDF device global parameters:
fontdir=
font=
pages=
zoom=
languagedir=
multiply=
poly2bitmap Convert graphics to bitmaps
bitmap Convert everything to bitmaps
SWF Parameters:
SWF layer options:
jpegsubpixels=
ppmsubpixels= subpixels= drawonlyshapes convert everything to shapes (currently broken) ignoredraworder allow to perform a few optimizations for creating smaller SWFs linksopennewwindow make links open a new browser window linktarget target window name of new links linkcolor= linknameurl Link buttons will be named like the URL they refer to (handy for iterating through links with actionscript) storeallcharacters don't reduce the fonts to used characters in the output file enablezlib switch on zlib compression (also done if flashversion>=6) bboxvars store the bounding box of the SWF file in actionscript variables dots Take care to handle dots correctly reordertags=0/1 (default: 1) perform some tag optimizations internallinkfunction= externallinkfunction= disable_polygon_conversion never convert strokes to polygons (will remove capstyles and joint styles) caplinewidth= insertstop put an ActionScript "STOP" tag in every frame protect add a "protect" tag to the file, to prevent loading in the Flash editor flashversion= framerate= minlinewidth= simpleviewer Add next/previous buttons to the SWF animate insert a showframe tag after each placeobject (animate draw order of PDF files) jpegquality= splinequality= disablelinks Disable links.pdf2swf转换有一个问题我一直没找到解决办法,就是转换后会自动播放和循环,有时候不需要自动播放和循环,这个参数我一直没找到,官网好像也没给出方法。如果有谁知道可以评论里面告诉我一下