• cenos php执行pdf2swf 配置环境


    1.第一步:安装xpdf语言包

    1.mkdir –p /usr/share/xpdf


    2.cd /usr/share/xpdf/


    3.下载中文支持及字体库
    wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-chinese-simplified.tar.gz
    wget http://www.nginxs.com/download/font.zip


    4.tar zxvf xpdf-chinese-simplified.tar.gz


    5.unzip font.zip

    6.mv Gbsn00lp.ttf gkai00mp.ttf xpdf-chinese-simplified/CMap/

    7.cd /usr/share/xpdf/xpdf-chinese-simplified 编辑,加入新增的字体


    8. 配置/usr/local/xpdf/xpdf-chinese-simplified/add-to-xpdfrc文件

    vim add-to-xpdfrc

    #----- begin Chinese Simplified support package (2011-sep-02)
    cidToUnicode Adobe-GB1 /usr/local/xpdf/xpdf-chinese-simplified/Adobe-GB1.cidToUnicode unicodeMap ISO-2022-CN /usr/local/xpdf/xpdf-chinese-simplified/ISO-2022-CN.unicodeMap unicodeMap EUC-CN /usr/local/xpdf/xpdf-chinese-simplified/EUC-CN.unicodeMap unicodeMap GBK /usr/local/xpdf/xpdf-chinese-simplified/GBK.unicodeMap cMapDir Adobe-GB1 /usr/local/xpdf/xpdf-chinese-simplified/CMap toUnicodeDir /usr/local/xpdf/xpdf-chinese-simplified/CMap displayCIDFontTT Adobe-GB1 /usr/local/xpdf/xpdf-chinese-simplified/CMap/gkai00mp.ttf displayCIDFontTT Adobe-GB1 /usr/local/xpdf/xpdf-chinese-simplified/CMap/gbsn00lp.ttf #----- end Chinese Simplified support package

    2.安装swftools服务

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

    解决在CentOS 5.5 64bit 下编译安装失败需要先安装如下软件。

    #  yum -y install giflib-devel libjpeg-devel freetype-devel t1lib-devel zlib

    2.安装swftools

    # tar -xzvf swftools-0.9.1.tar.gz

    # cd swftools-0.9.1

    # ./configure --prefix=/u/swftools

    # make

    # make install

     

    编译错误:

    安装过程中,出现如下错误及解决办法:

    错误1

    ***************************************************

    * The following headers/libraries are missing:  ungif gif_lib.h

    * Disabling gif2swf tool...

    ***************************************************

    解决办法:

    yum install giflib-devel

     

    错误2

    ***************************************************

    * The following headers/libraries are missing: jpeglib t1lib ungif jpeglib.h freetype t1lib.h gif_lib.h

    * Disabling pdf2swf tool...

    * Disabling jpeg2swf tool...

    * Disabling gif2swf tool...

    ***************************************************

    解决办法:

    yum install giflib-devel libjpeg-devel freetype-devel t1lib-devel

  • 相关阅读:
    影响cpu性能的因素有哪些?
    linux系统中 SElinux安全子系统
    linux 系统中个人用户主页功能
    理解 Segmentation fault
    VI高级命令集锦
    How to be a Star 怎样成为明星?
    名词解释:DEADBEEF
    Unix还能走多远?
    Awk 实例,第 1 部分
    77年出生的朋友,你们过的还好吗?
  • 原文地址:https://www.cnblogs.com/weizaiyes/p/7198710.html
Copyright © 2020-2023  润新知