变态重口极致另类在线-波多久久夜色精品国产-波多野结衣在线观看一区-波多野结衣在线观看一区二区-污污的网站免费阅读-污污视频网址

當(dāng)前位置: 首頁(yè)IT技術(shù) → SWFTools 詳細(xì)教程

SWFTools 詳細(xì)教程

更多

SWFTools提供了一系列將各種文件轉(zhuǎn)成swf的工具:

pdf轉(zhuǎn)swf(SWFTools)
5.0
類(lèi)別: 應(yīng)用其他    大小:21.2M    語(yǔ)言: 中文
查看詳細(xì)信息 >>

font2swf.exe

//把字體文件轉(zhuǎn)成flash(SWF)文件,應(yīng)該是為了寫(xiě)flash時(shí)調(diào)用字體用的

jpeg2swf.exe

//把多張jpeg轉(zhuǎn)成一個(gè)swf的slideshow

png2swf.exe

//和jpeg2swf差不多,適用于png格式的圖片而已

gif2swf.exe

//這個(gè)也和jpeg2swf差不多,而且支持動(dòng)態(tài)的gif文件

pdf2swf.exe

//在xpdf的基礎(chǔ)上開(kāi)發(fā)的,能解析pdf,并把pdf轉(zhuǎn)成flash(SWF)文件,對(duì)中文等多字節(jié)字體支持很好

swfcombine.exe

//合并兩個(gè)swf文件,應(yīng)該說(shuō)是把一個(gè)由pdf2swf生成的swf文件插入到一個(gè)swf模板中,比如添加導(dǎo)航條等功能

wav2swf.exe

//把聲音文件轉(zhuǎn)成swf,需要lame的mp3 encoder 類(lèi)支持

swfstrings.exe

//掃描swf文件,并導(dǎo)出text文本,swf2text,用于抽取swf中的文字,這樣swf也可以支持文字查找了。

swfbbox.exe

//這個(gè)也許應(yīng)該理解為顯示和調(diào)整swf尺寸的,有些pdf文件轉(zhuǎn)成swf后會(huì)出現(xiàn)顯示不完整的現(xiàn)象,那就要用到這個(gè)了

具體的功能就顧名思義了。

其中把pdf轉(zhuǎn)成swf的工具就是pdf2swf了。在命令行中運(yùn)行pdf2swf src.pdf des.swf一般能滿(mǎn)足需求。而命令行參數(shù)可以通過(guò)pdf2swf -f得到:

-h , –help Print short help message and exit 打印幫助信息

-V , –version Print version info and exit 打印版本號(hào)

-o , –output file.swf Direct output to file.swf. If file.swf contains ‘13568621′ (file13568630.swf), then each page指定輸出的swf文件名

-p , –pages range Convert only pages in range with range e.g. 1-20

or 1,4,6,9-11 or

指定轉(zhuǎn)換的頁(yè)面范圍,使用的頁(yè)碼描述方法與打印機(jī)打印文件時(shí)候的選頁(yè)一樣

-P , –password password Use password for deciphering the pdf.指定打開(kāi)pdf的密碼

-v , –verbose Be verbose. Use more than one -v for greater effect.轉(zhuǎn)換時(shí)輸出詳細(xì)的內(nèi)容

-z , –zlib Use Flash 6 (MX) zlib compression.使用Flash 6的zlib壓縮機(jī)制

-i , –ignore Allows pdf2swf to change the draw order of the pdf. This may make the generated允許程序修改pdf的繪制順序,可能會(huì)導(dǎo)致結(jié)果與原來(lái)有差異

-j , –jpegquality quality Set quality of embedded jpeg pictures to quality. 0 is worst (small), 100 is best (big). (default:85)設(shè)置轉(zhuǎn)換其中的jpeg圖片的質(zhì)量,從0到100,默認(rèn)值是85。

-s , –set param=value Set a SWF encoder specific parameter. See pdf2swf -s help for more information. 設(shè)置SWF轉(zhuǎn)碼時(shí)候的參數(shù),具體參數(shù)可以用pdf2swf -s help獲取

-w , –samewindow When converting pdf hyperlinks, don’t make the links open a new window. 設(shè)置轉(zhuǎn)換后的swf打開(kāi)原pdf中的連接時(shí)使用相同的窗口

-t , –stop Insert a stop() command in each page. 在每頁(yè)結(jié)尾添加一個(gè)stop()命令

-T , –flashversion num Set Flash Version in the SWF header to num. 設(shè)置SWF所使用的flash版本號(hào)

-F , –fontdir directory Add directory to the font search path. 指定字體文件所在路徑

-b , –defaultviewer Link a standard viewer to the swf file. 指定默認(rèn)的swf導(dǎo)航文件,用來(lái)翻頁(yè)、放大縮小等等

-l , –defaultloader Link a standard preloader to the swf file which will be displayed while the main swf is loading. 指定默認(rèn)的swf加載文件,用來(lái)顯示加載進(jìn)程效果

-B , –viewer filename Link viewer filename to the swf file. 指定swf導(dǎo)航文件,作用同-b

-L , –preloader filename Link preloader filename to the swf file. 指定swf加載文件,作用同-l

-q , –quiet Suppress normal messages. Use -qq to suppress warnings, also. 不打印普通信息,用-qq就不打印警告信息。

-S , –shapes Don’t use SWF Fonts, but store everything as shape. 不使用字體,所有都轉(zhuǎn)為形狀。

-f , –fonts Store full fonts in SWF. (Don’t reduce to used characters). 在swf中保存全部字體。

-G , –flatten Remove as many clip layers from file as possible. 在文件中盡量去除影片層,合并它們

-I , –info Don’t do actual conversion, just display a list of all pages in the PDF. 不做實(shí)際轉(zhuǎn)換,僅顯示PDF的信息。

-Q , –maxtime n Abort conversion after n seconds. Only available on Unix. 如果運(yùn)行時(shí)間超時(shí)則退出。

然后看看-s都可以設(shè)置些什么:

PDF Parameters:

PDF device global parameters:

fontdir= a directory with additional fonts 指定字體目錄, 與1級(jí)參數(shù)的-F相若

font= an additional font filename 增加額外的字體文件

pages= the range of pages to convert (example: pages=1-100,210-) 指定頁(yè)面范圍,與1級(jí)參數(shù)的-p相若

zoom= the resolution (default: 72) 指定分辨率,默認(rèn)為72dpi

languagedir= Add an xpdf language directory 增加一個(gè)xpdf的語(yǔ)言目錄,對(duì)非西歐字符有用

multiply= Render everything at the resolution 在幾倍分辨率下渲染

poly2bitmap Convert graphics to bitmaps 把其中的圖形轉(zhuǎn)成點(diǎn)陣

bitmap Convert everything to bitmaps 把所有內(nèi)容轉(zhuǎn)成點(diǎn)陣(包括字體)

SWF Parameters:

SWF layer options:

jpegsubpixels= resolution adjustment for jpeg images (same as jpegdpi, but in pixels) jpeg圖片的分辨率

ppmsubpixels= resolution adjustment for lossless images (same asppmdpi, but in pixels) 無(wú)損圖片的分辨率

subpixels= shortcut for setting both jpegsubpixels and ppmsubpixels 快速設(shè)置上兩個(gè)參數(shù)

drawonlyshapes convert everything to shapes (currently broken) 所有都轉(zhuǎn)成圖形

ignoredraworder allow to perform a few optimizations for creating smaller SWFs 允許執(zhí)行一些小優(yōu)化

linksopennewwindow make links open a new browser window 鏈接打開(kāi)新窗口

linktarget target window name of new links 新鏈接窗口的名稱(chēng)

linkcolor=<COLOR) color of links (format: RRGGBBAA) 鏈接的顏色 < p>

linknameurl Link buttons will be named like the URL they refer to (handy for iterating through links with actionscript) 鏈接名稱(chēng)與鏈接URL一致

storeallcharacters don’t reduce the fonts to used characters in the output file 保存所有的字符字體

enablezlib switch on zlib compression (also done if flashversion>=7) 使用zlib壓縮

bboxvars store the bounding box of the SWF file in actionscript variables 在as中保存swf的區(qū)域大小

dots Take care to handle dots correctly 保存單點(diǎn)顯示

reordertags=0/1 (default: 1) perform some tag optimizations 執(zhí)行某些tag優(yōu)化

internallinkfunction= when the user clicks a internal link (to a different page) in the converted file, this actionscript function is called 內(nèi)部鏈接函數(shù),如果點(diǎn)擊一個(gè)內(nèi)部鏈接,將調(diào)用該actionscript函數(shù)

externallinkfunction= when the user clicks an external link (e.g. http://www.foo.bar/) on the converted file, this actionscript function is called 外部鏈接函數(shù),如果點(diǎn)擊一個(gè)外部鏈接,將調(diào)用該actionscript函數(shù)

disable_polygon_conversion never convert strokes to polygons (will remove capstyles and joint styles) 不要將筆畫(huà)轉(zhuǎn)成多邊形

caplinewidth= the minimum thichness a line needs to have so that capstyles become visible (and are converted) 線(xiàn)條最低轉(zhuǎn)換寬度,比這個(gè)細(xì)的線(xiàn)條將不轉(zhuǎn)換

insertstop put an ActionScript “STOP” tag in every frame 在swf的每個(gè)楨中添加stop()函數(shù)

protect add a “protect” tag to the file, to prevent loadingin the Flash editor 增加protect標(biāo)簽,禁止在flash中加載該swf

flashversion= the SWF fileversion (6) 設(shè)置最低swf版本

framerate= SWF framerate 設(shè)置楨率

minlinewidth= convert horizontal/vertical boxes smaller than thiswidth to lines (0.05)將寬度少于某值的矩形轉(zhuǎn)成線(xiàn)條

simpleviewer Add next/previous buttons to the SWF 使用簡(jiǎn)單的導(dǎo)航

animate insert a showframe tag after each placeobject (animate draw order of PDF files) ???

jpegquality= set compression quality of jpeg images 設(shè)置jpeg的壓縮質(zhì)量

splinequality= Set the quality of spline convertion to value (0-100, default: 100). 設(shè)置樣條曲線(xiàn)的轉(zhuǎn)換質(zhì)量

disablelinks Disable links. 禁止鏈接

在含中文的pdf轉(zhuǎn)換時(shí)會(huì)遇到一些麻煩,具體的解決方法:(javaeye上的文字)

1. 下載swftools:http://www.swftools.org/download.html

下載xpdf xpdf-chinese-simplified

下載兩個(gè)中文字體文件 字體文件

2 .安裝swftools 至任意路徑

解壓縮xpdf 至任意路徑

解壓縮中文字體至xdpf\chinese-simplified\Cmap文件夾下

3. 修改xpdf下xpdfrc文件 將cidToUnicode 等路徑改為本機(jī)路徑,

修改xpdf下chinese-simplified\add-to-xpdfrc文件 同上

4. 打開(kāi)命令行窗口: pdf2swf -o 輸出文件路徑 -t 輸入文件路徑 -s languagedir=xpdf路徑\chinese-simplified

有些pdf中的圖形轉(zhuǎn)換效果不好,會(huì)產(chǎn)生過(guò)多shape,這種情況下可以使用 -s poly2bitmap 的參數(shù),將圖形轉(zhuǎn)成點(diǎn)陣。生成的swf尺寸少了。

熱門(mén)評(píng)論
最新評(píng)論
發(fā)表評(píng)論 查看所有評(píng)論(1)
昵稱(chēng):
表情: 高興 可 汗 我不要 害羞 好 下下下 送花 屎 親親
字?jǐn)?shù): 0/500 (您的評(píng)論需要經(jīng)過(guò)審核才能顯示)
主站蜘蛛池模板: 可以免费观看的黄色网址 | 亚洲欧美国产精品专区久久 | 亚洲欧美日韩天堂在线观看 | 五月天在线观看免费视频播放 | 欧美日韩精 | 黄色三级小视频 | 色狠狠色综合久久8狠狠色 色狠狠成人综合网 | 国产精品国产三级在线高清观看 | 日本不卡视频一区二区三区 | 一卡二卡3卡四卡网站精品国 | 日韩精品亚洲一级在线观看 | 最近高清中文字幕2019 | 一级一级一片免费高清 | 国产成人一区在线播放 | 成人a级高清视频在线观看 成人a大片在线观看 | 天天做天天躁天天躁 | 一级美国片免费看 | 亚洲狠狠97婷婷综合久久久久 | 嫩模被xxxx视频在线观看 | 曰本不卡视频 | 一级毛片高清免费播放 | 免费一级特黄a | 狠狠色丁香婷婷综合欧美 | 中文字幕在线视频不卡 | 国产日韩欧美中文 | 亚洲综合在线另类色区奇米 | 亚洲高清成人 | 人人干人人玩 | 在线播放黄 | 天天做天天干 | 久久精品国产2020观看福利色 | 黄视频在线免费 | 性欧美xxx在线观看 性欧美疯狂猛交69hd | 日本不卡视频一区二区 | 亚欧美视频 | 未满十八18勿进黄网站免费看 | 永久在线 | 日本三级视频在线观看 | 免费在线观看h片 | 狠狠色狠狠色综合日日92 | 国产自愉怕一区二区三区 |