Page 1 of 1

Docx4j-ImportXHTML 8.2.0 released

PostPosted: Thu Jan 14, 2021 3:08 pm
by jason
We're pleased to announce the release of Docx4j-ImportXHTML 8.2.0.

The purpose of Docx4j-ImportXHTML is to convert XHTML (ie well formed HTML) to Word document (docx) content.

The major change in this release is that we have migrated from FlyingSaucer to https://github.com/danfickle/openhtmltopdf which is actively maintained and uses pdfbox, not old iText.

Docx4j-ImportXHTML 8.2.0 is compiled for Java 8, and should work with any docx4j 8 to 8.2.x. Note:This release is newer than the ImportXHTML in the docx4j 8.2.8 zip (which uses the old FlyingSaucer and iText code).

Docx4j-ImportXHTML 8.2.0 is available in Maven Central, at https://search.maven.org/artifact/org.d ... /8.2.0/jar or at https://www.docx4java.org/docx4j/docx4j ... -8.2.0.zip

Re: Docx4j-ImportXHTML 8.2.0 released

PostPosted: Fri Jan 29, 2021 1:12 pm
by jason
The docx4j-ImportXHTML 8.2.0 pom declares a dependency on docx4j-samples-resources. It shouldn't, since that just contains sample config files: https://github.com/plutext/docx4j/tree/ ... /resources and as such isn't in Maven Central.

If you are using Maven, you can exclude it like so:

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
                <dependency>
            <groupId>org.docx4j</groupId>
                        <artifactId>docx4j-ImportXHTML</artifactId>
                        <version>8.2.0</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>org.docx4j</groupId>
                                        <artifactId>docx4j-samples-resources</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
 
Parsed in 0.001 seconds, using GeSHi 1.0.8.4

Re: Docx4j-ImportXHTML 8.2.0 released

PostPosted: Tue Feb 16, 2021 7:38 am
by iparnelly
Great work Jason!

Will the next release remove the docx4j-samples-resources dependency?