docx4j-ImportXHTML | Converts XHTML to OpenXML WordML using docx4j | Generator Utils library
kandi X-RAY | docx4j-ImportXHTML Summary
kandi X-RAY | docx4j-ImportXHTML Summary
Converts XHTML to OpenXML WordML (docx) using docx4j; there is also some support for converting to pptx. For docx4j-ImportXHTML v8.x, you need Java 8 or later. ( If you are still using Java 6, you can use docx4j-ImportXHTML v6.x). docx4j is licensed under ASLv2. This project is licensed under LGPL v2.1 (or later), which is the license used by openhtmltopdf (the main dependency). See legals/NOTICE for details.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Process an inline box .
- Sets the table properties .
- Add a number to the text paragraph .
- Creates a bookmark range from an element .
- Enter the TDT element
- Remove redundant properties
- Traverses a BlockBox .
- Main method for testing .
- create a ReplacedElement for a block box
- Sets the R font family to use .
docx4j-ImportXHTML Key Features
docx4j-ImportXHTML Examples and Code Snippets
Community Discussions
Trending Discussions on docx4j-ImportXHTML
QUESTION
I am trying to convert DOCX to HTML using DOCX4j, Java 11, Spring boot 2.3.5, Ubuntu 18.04.5, and I am running my .WAR file on tomcat 9.
When I run the code, I get this error. How can I fix this?
My Code
references:
ANSWER
Answered 2020-Dec-11 at 19:31Looks like your tmpFontDir is null.
https://github.com/plutext/docx4j/blob/master/docx4j-core/src/main/java/org/docx4j/openpackaging/parts/AbstractFontPart.java#L66 is what sets it.
Consider setting property docx4j.openpackaging.parts.WordprocessingML.ObfuscatedFontPart.tmpFontDir
Since you are using Tomcat, set it toTOMCAT_HOME/temp (substituting the actual path in there).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docx4j-ImportXHTML
You can use docx4j-ImportXHTML like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the docx4j-ImportXHTML component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page