docx4j-ImportXHTML

repository·VERSION_17_0_5·Indexed 41 days ago

https://github.com/plutext/docx4j-importxhtml

A library for converting XHTML markup into Microsoft Office Open XML formats, primarily .docx (Word) and partially .pptx (PowerPoint), leveraging the docx4j ecosystem.

Tokens
440
Snippets
1
Records
2
Agent score
50%

What's inside docx4j-ImportXHTML

  1. Install docx4j-ImportXHTML via Maven

    VERSION_17_0_5

    To use this library in a Maven project, add the docx4j-ImportXHTML-core dependency.

    Note: You must also include a dependency for a JAXB implementation to ensure the library functions correctly. You can choose between the Reference Implementation or MOXy.

    <!-- Maven Dependency for core functionality -->
    <dependency>
        <groupId>org.docx4j</groupId>
        <artifactId>docx4j-ImportXHTML-core</artifactId>
        <version>[VERSION]</version>
    </dependency>
    
    <!-- You MUST also add one of the following JAXB implementations -->
    
    <!-- Option 1: JAXB Reference Implementation -->
    <dependency>
        <groupId>org.docx4j</groupId>
        <artifactId>docx4j-JAXB-ReferenceImpl</artifactId>
        <version>[VERSION]</version>
    </dependency>
    
    <!-- Option 2: JAXB MOXy -->
    <dependency>
        <groupId>org.docx4j</groupId>
        <artifactId>docx4j-JAXB-MOXy</artifactId>
        <version>[VERSION]</version>
    </dependency>