美文网首页
docx4j操作文档 一环境配置

docx4j操作文档 一环境配置

作者: antlove | 来源:发表于2021-04-21 09:43 被阅读0次

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>docx4j</groupId>
    <artifactId>docx4j</artifactId>
    <version>1.0-SNAPSHOT</version>

    <dependencies>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.5</version>
        </dependency>

        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-core</artifactId>
            <version>1.2.3</version>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>1.2.3</version>
        </dependency>

        <dependency>
            <groupId>org.docx4j</groupId>
            <artifactId>docx4j-JAXB-MOXy</artifactId>
            <version>8.2.0</version>
        </dependency>
    </dependencies>
</project>

logback.xml

<configuration>
    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>%d{yyyy-mm-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} %line - %msg%n</pattern>
        </encoder>
    </appender>
    <logger name="org.apache.commons" level="WARN" />
    <logger name="org.apache.fop" level="INFO" />
 
    <!-- docx4j loggers -->
    <logger name="org.docx4j" level="WARN" />
    <logger name="org.docx4j.Docx4J" level="WARN" />
    <logger name="org.docx4j.TraversalUtil" level="ERROR" />
    <logger name="org.docx4j.XmlUtils" level="WARN" />
    <logger name="org.docx4j.utils.ResourceUtils" level="INFO" />
    <logger name="org.docx4j.convert.in" level="WARN" />
    <logger name="org.docx4j.convert.in.xhtml" level="WARN" />
    <logger name="org.docx4j.convert.in.xhtml.ListHelper" level="WARN" />
    <logger name="org.docx4j.convert.out" level="WARN" />
    <logger name="org.docx4j.convert.out.common.AbstractConversionContext" level="WARN" />
    <logger name="org.docx4j.convert.out.common.Preprocess" level="WARN" />
    <logger name="org.docx4j.convert.out.common.preprocess" level="WARN" />
    <logger name="org.docx4j.convert.out.common.preprocess.FieldsCombiner" level="WARN" />
 
    <!-- PDF output via XSL FO: change this to warn to hide messages -->
    <logger name="org.docx4j.convert.out.common.writer.AbstractMessageWriter" level="DEBUG" />
    <logger name="org.docx4j.convert.out.fo" level="WARN" />
    <logger name="org.docx4j.convert.out.html.ListsToContentControls" level="WARN" />
    <logger name="org.docx4j.diff" level="INFO" />
    <logger name="com.topologi" level="DEBUG" />
    <logger name="org.docx4j.fonts" level="WARN" />
    <logger name="org.docx4j.fonts.fop.fonts.autodetect.FontInfoFinder" level="WARN" />
    <logger name="org.docx4j.fonts.BestMatchingMapper" level="WARN" />
    <logger name="org.docx4j.fonts.PhysicalFonts" level="WARN" />
    <logger name="org.docx4j.fonts.RunFontSelector" level="WARN" />
    <logger name="org.docx4j.jaxb" level="INFO" />
    <logger name="org.docx4j.model" level="WARN" />
    <logger name="org.docx4j.model.fields" level="WARN" />
    <logger name="org.docx4j.model.listnumbering" level="WARN" />
    <logger name="org.docx4j.model.PropertyResolver" level="WARN" />
    <logger name="org.docx4j.model.structure" level="WARN" />
    <logger name="org.docx4j.model.styles" level="WARN" />
    <logger name="org.docx4j.model.table" level="INFO" />
    <logger name="org.docx4j.openpackaging" level="WARN" />
    <logger name="org.docx4j.openpackaging.URIHelper" level="WARN" />
    <logger name="org.docx4j.openpackaging.io3" level="ERROR" />
    <logger name="org.docx4j.openpackaging.io3.stores.ZipPartStore" level="ERROR" />
    <logger name="org.docx4j.openpackaging.io3.LoadFromZipNG" level="ERROR" />
    <logger name="org.docx4j.openpackaging.packages" level="WARN" />
    <logger name="org.docx4j.openpackaging.parts" level="WARN" />
    <logger name="org.docx4j.openpackaging.parts.relationships" level="WARN" />
    <logger name="org.docx4j.openpackaging.parts.Parts" level="INFO" />
    <logger name="org.docx4j.openpackaging.parts.ThemePart" level="WARN" />
    <logger name="org.docx4j.openpackaging.parts.WordprocessingML.BinaryPartAbstractImage" level="INFO" />
    <logger name="org.docx4j.openpackaging.parts.AbstractFontPart" level="WARN" />
    <logger name="org.docx4j.openpackaging.parts.WordprocessingML.ObfuscatedFontPart" level="DEBUG" />
    <logger name="org.docx4j.openpackaging.parts.WordprocessingML.FontTablePart" level="WARN" />
 
    <!--  to see the fop config  -->
    <logger name="org.docx4j.convert.out.fo.renderers" level="DEBUG" />
    <logger name="org.docx4j.services.client" level="INFO" />
    <logger name="org.docx4j.toc" level="INFO" />
    <logger name="org.docx4j.wml" level="WARN" />
    <logger name="org.docx4j.utils.XPathFactoryUtil" level="INFO" />
    <logger name="org.docx4j.org.xhtmlrenderer" level="WARN" />
    <logger name="org.docx4j.org.xhtmlrenderer" level="WARN"/>
    <logger name="org.pptx4j" level="WARN"/>
    <logger name="org.docx4j.convert.out.documents4j.local" level="INFO"/>
 
    <!-- OpenDoPE functionality loggers -->
    <logger name="org.docx4j.model.datastorage" level="WARN" />
    <logger name="org.docx4j.model.datastorage.OpenDoPEHandlerComponents" level="WARN" />
    <logger name="org.docx4j.openpackaging.parts.CustomXmlDataStoragePart" level="WARN" />
    <logger name="org.docx4j.openpackaging.parts.XmlPart" level="WARN" />
    <logger name="org.opendope.conditions.Xpathref" level="WARN" />
    <logger name="org.opendope" level="WARN" />
 
    <!-- Enterprise edition loggers -->
    <logger name="com.plutext.merge" level="INFO" />
    <logger name="com.plutext.merge.BlockRange" level="INFO" />
    <logger name="com.plutext.merge.HeaderFooterUtils" level="INFO" />
    <logger name="com.plutext.merge.CustomXmlPartHandler" level="WARN" />
    <logger name="com.plutext.merge.altchunk" level="WARN" />
    <logger name="com.plutext.merge.pptx" level="WARN" />
    <logger name="com.plutext.cmis" level="WARN" />
    <logger name="org.apache.jcp.xml.dsig.internal.dom" level="INFO" />
    <logger name="com.plutext.crypt.dsig" level="INFO" />
    <logger name="org.docx4j.openpackaging.parts.digitalsignature.XmlSignaturePart" level="INFO" />
    <logger name="com.plutext.demo.diagnostics" level="DEBUG" />
    <root level="INFO">
        <appender-ref ref="STDOUT" />
    </root>
</configuration>

相关文章

  • Docx4j导出latex公式到word(公式可编辑)

    环境 核心代码 依赖项 docx4j:操作word文档(.docx) latex-word(第三方jar包):将l...

  • docx4j操作文档 一环境配置

    pom.xml logback.xml

  • Hadoop运行环境搭建

    本文是hadoop的运行环境搭建实际的操作过程的记录和总结,整个文档包括如下内容: 概述 环境配置 创建用户 配置...

  • 服务器HTTPS配置

    服务器https配置 配置https操作说明文档 1、查看服务器环境配置(tomcat和apache合并使用) 2...

  • SPARK

    本文档介绍了如何配置虚拟机spark python开发环境,以及简要的开发指南。 环境配置 环境配置请参考文档:虚...

  • 一、开发环境

    学习笔记一:IDEA环境配置 配置indelliJ IDEA开发环境,svn下载项目文档 步骤一:安装indell...

  • TypeScript基础

    配置环境 官方文档(英文)[https://www.typescriptlang.org/docs/]官方文档(中...

  • Jmeter基础应用

    环境配置 mac端下载配置环境: 参考文档:https://www.jianshu.com/p/bce9077d8...

  • linun 安装 java,maven(自用)

    以下操作皆在root用户登录下操作,安装包在官网下载 以下操作以java配置为例 配置环境变量 配置系统环境变量 ...

  • flutter

    环境配置 一、文档 1、flutter 二、环境 (OMG) 1、jkd https://www.oracle.c...

网友评论

      本文标题:docx4j操作文档 一环境配置

      本文链接:https://www.haomeiwen.com/subject/tpealltx.html