大漠駝鈴

          置身浩瀚的沙漠,方向最為重要,希望此blog能向大漠駝鈴一樣,給我方向和指引。
          Java,Php,Shell,Python,服務(wù)器運維,大數(shù)據(jù),SEO, 網(wǎng)站開發(fā)、運維,云服務(wù)技術(shù)支持,IM服務(wù)供應(yīng)商, FreeSwitch搭建,技術(shù)支持等. 技術(shù)討論QQ群:428622099
          隨筆 - 238, 文章 - 3, 評論 - 117, 引用 - 0
          數(shù)據(jù)加載中……

          Ubuntu安裝swftools

          1軟件地址
          http://download.savannah.gnu.org/releases/freetype/freetype-2.4.0.tar.gz
          http://www.ijg.org/files/jpegsrc.v9.tar.gz
          http://swftools.org/swftools-0.9.2.tar.gz

          2.安裝Jpegsrc
          tar xzvf  jpegsrc.v9.tar.gz
          cd jpegsrc
          ./configure
          make
          make install

          3.安裝freeType
          ./configure
          make
          make install

          4.安裝libjpg
          執(zhí)行 sudo apt search libjpg
          發(fā)現(xiàn)下面兩個包
          libjpgalleg4-dev
          libjpgalleg4.4

          執(zhí)行sudo apt-get install  libjpgalleg4-dev libjpgalleg4.4 進(jìn)行安裝

          5.安裝swftools
          ./configure
          make
          make install
          6.執(zhí)行pdf2swf,出現(xiàn)下面的內(nèi)容表明安裝成功
          Usage: pdf2swf [-options] file.pdf -o file.swf

          -h , --help                    Print short help message and exit
          -V , --version                 Print version info and exit
          -o , --output file.swf         Direct output to file.swf. If file.swf contains '%' (file%.swf), then each page goes to a separate file.
          -p , --pages range             Convert only pages in range with range e.g. 1-20 or 1,4,6,9-11 or
          -P , --password password       Use password for deciphering the pdf.
          -v , --verbose                 Be verbose. Use more than one -v for greater effect.
          -z , --zlib                    Use Flash 6 (MX) zlib compression.
          -i , --ignore                  Allows pdf2swf to change the draw order of the pdf. This may make the generated
          -j , --jpegquality quality     Set quality of embedded jpeg pictures to quality. 0 is worst (small), 100 is best (big). (default:85)
          -s , --set param=value         Set a SWF encoder specific parameter.  See pdf2swf -s help for more information.
          -w , --samewindow              When converting pdf hyperlinks, don't make the links open a new window. 
          -t , --stop                    Insert a stop() command in each page. 
          -T , --flashversion num        Set Flash Version in the SWF header to num.
          -F , --fontdir directory       Add directory to the font search path.
          -b , --defaultviewer           Link a standard viewer to the swf file. 
          -l , --defaultloader           Link a standard preloader to the swf file which will be displayed while the main swf is loading.
          -B , --viewer filename         Link viewer filename to the swf file. 
          -L , --preloader filename      Link preloader filename to the swf file. 
          -q , --quiet                   Suppress normal messages.  Use -qq to suppress warnings, also.
          -S , --shapes                  Don't use SWF Fonts, but store everything as shape.
          -f , --fonts                   Store full fonts in SWF. (Don't reduce to used characters).
          -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.
          -Q , --maxtime n               Abort conversion after n seconds. Only available on Unix.

          posted on 2014-07-31 20:39 草原上的駱駝 閱讀(4881) 評論(0)  編輯  收藏 所屬分類: Linux

          主站蜘蛛池模板: 新宾| 滦南县| 北票市| 颍上县| 顺昌县| 淄博市| 上杭县| 富锦市| 洞口县| 九龙坡区| 壤塘县| 山西省| 新闻| 湖北省| 纳雍县| 栖霞市| 收藏| 揭西县| 库尔勒市| 芒康县| 平陆县| 余干县| 特克斯县| 德钦县| 阿拉善盟| 陆丰市| 永善县| 五寨县| 化德县| 桐梓县| 韩城市| 江孜县| 永善县| 仲巴县| 新化县| 即墨市| 新闻| 六盘水市| 蒙山县| 枣庄市| 清丰县|