• Asponse.words for java is limited with jdk's builtin image encoders/decoders.in order to improve reading/writing quality use the following external graphics libraries


    开发环境

    Aspose.words19.5

    jkd 1.8.0_281

    tomcat 8.5.65

    问题word转pdf log报错但不影响程序运行

    错误信息

    Aspose.Words for Java is limited with JDK's built-in image encoders/decoders. In order to improve reading/writing quality use the following external graphics libraries: * ImageMagick - Download and install ImageMagick from https://imagemagick.org/script/download.php - Windows users will have to set up the path to ImageMagick via IM4JAVA_TOOLPATH or ProcessStarter.setGlobalSearchPath(myPath), e.g. IM4JAVA_TOOLPATH=C:\Program Files\ImageMagick-7.0.8-Q16 - Download im4java https://sourceforge.net/projects/im4java/files/ - Copy im4java-1.4.0.jar to CLASSPATH or copy to JDK_HOME/jre/lib/ext directory. * Java Advanced Imaging API - Download jai_codec and add it to application classpath https://mvnrepository.com/artifact/javax.media/jai_codec/1.1.3 - Download jai_core and add it to application classpath https://mvnrepository.com/artifact/javax.media/jai-core/1.1.3 - Download jai_imageio and add it to application classpath https://mvnrepository.com/artifact/javax.media/jai_imageio/1.1.1

    解决方法

    System Requirements | Aspose.Words for Java

    How to Install JAI on Windows

    Follow these steps to install native JAI and ImageIO on Windows:

    1. Download JAI 1.1.3. At the time of writing, only the 32-bit version of the installer is available, so if you use a JDK you need to download Jai-1_1_3-lib-windows-i586-jdk.exe and if you use a JRE you need to download Jai-1_1_3-lib-windows-i586-jre.exe.
    2. Run the installer and point it to the directory where JDK/JRE is installed.
    3. Download JAI Image I/O 1.1. At the time of writing, only the 32-bit version of the installer is available, so if you use a JDK you need to download jai_imageio-1_1-lib-windows-i586-jdk.exe and if you use a JRE you need to download jai_imageio-1_1-lib-windows-i586-jre.exe
    4. Run the installer and point it to the directory where JDK/JRE is installed

    How to Install JAI on Linux

    Follow these steps to install native JAI and ImageIO on Linux:

    1. Download JAI 1.1.3 choosing the appropriate architecture:

      1. i586 for 32-bit systems
      2. amd64 for 64-bit ones (even if using Intel processors)
    2. Extract the file into a temporary directory.

    3. Move JAR files to the JDK/JRE lib/ext folder.

    4. Move SO files to the JDK/JRE lib/amd64 folder.

      For example, on a 64-bit Ubuntu system, steps 1-4 will look like this:

      1.    $ cd /tmp
           $ wget https://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-amd64.tar.gz && \
           gunzip -c jai-1_1_3-lib-linux-amd64.tar.gz | tar xf - && \
           mv /tmp/jai-1_1_3/lib/*.jar $JAVA_HOME/jre/lib/ext/ && \
           mv /tmp/jai-1_1_3/lib/*.so $JAVA_HOME/jre/lib/amd64/ && \
           rm /tmp/jai-1_1_3-lib-linux-amd64.tar.gz && \
           rm -r /tmp/jai-1_1_
    5. Download JAI Image I/O 1.1, choosing the appropriate architecture:

      1. i586 for the 32-bit systems
      2. amd64 for the 64-bit ones (even if using Intel processors)
    6. Extract the file into a temporary directory.

    7. Move JAR files to the JDK/JRE lib/ext folder.

    8. Move SO files to the JDK/JRE lib/amd64 folder.

      For example, on a 64-bit Ubuntu system, steps 5-8 will look like this:

       $ cd /tmp
       $ wget https://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-amd64.tar.gz && \
       gunzip -c jai_imageio-1_1-lib-linux-amd64.tar.gz | tar xf - && \
       mv /tmp/jai_imageio-1_1/lib/*.jar $JAVA_HOME/jre/lib/ext/ && \
       mv /tmp/jai_imageio-1_1/lib/*.so $JAVA_HOME/jre/lib/amd64/ && \
       rm /tmp/jai_imageio-1_1-lib-linux-amd64.tar.gz && \
       rm -r /tmp/jai_imageio-1_1
  • 相关阅读:
    Hibernate 配置双向多对多关联
    转 方法区(method) )、栈区(stack)和堆区(heap)之JVM 内存初学
    java web 实战经典(二)
    flex 生成多边形时内、外环计算
    java web 开发实战经典(一)
    sql语句联表更新(从一个数据库中的一张表更新到另一个数据库的另一张表)
    javascript DOM编程艺术(检测与性能优化)
    java数据库基本操作(sqlserver 2000为例)
    同一台电脑上配置多个解压版tomcat方法(本例安装两个)
    css那些事(一)
  • 原文地址:https://www.cnblogs.com/bingru/p/15975888.html
Copyright © 2020-2023  润新知