Maybe someone car help me or send me a link to follow.
A general comment on the website. There are a lot of broken links on the download page consulted 1/11/2019. I found what I need https://www.docx4java.org/docx4j/
The JRE is under Windows 2012. I am following the example at https://github.com/plutext/docx4j/blob/ ... tHtml.java
My issue:
I cannot create the BestMatchingMapper or initialize class org.docx4j.fonts.BestMatchingMapper. Maybe an issue with the mapper, it seems looking at org/apache/xmlgraphics/fonts/Glyphs but honsetly I am lost with not much error or log information.
I need the mapper for the wordMLPackage into an htmlSettings. Then to do a Docx4J.toHTML(htmlSettings, ByteArrayOutputStream, Docx4J.FLAG_EXPORT_PREFER_NONXSL);
Is there a way to define a path where to find the fonts when initialize the BestMatchingMapper ?
Log from Coldfusion
- Code: Select all
Nov 4, 2019 11:19:37 AM Error [ajp-nio-8016-exec-7] - org/apache/xmlgraphics/fonts/Glyphs The specific sequence of files included or processed is: [path of the file], line: 87
11/04 11:20:05 [ajp-nio-8016-exec-8] INFO Using paper size: A4
11/04 11:20:05 [ajp-nio-8016-exec-8] INFO Landscape orientation: false
11/04 11:20:05 [ajp-nio-8016-exec-8] INFO adding part with proposed name: /word/document.xml
11/04 11:20:05 [ajp-nio-8016-exec-8] INFO adding part with proposed name: /word/styles.xml
11/04 11:20:05 [ajp-nio-8016-exec-8] INFO adding part with proposed name: /docProps/core.xml
11/04 11:20:05 [ajp-nio-8016-exec-8] INFO adding part with proposed name: /docProps/app.xml
11/04 11:20:05 [ajp-nio-8016-exec-8] INFO adding part with proposed name: /word/settings.xml
Nov 4, 2019 11:20:05 AM Error [ajp-nio-8016-exec-8] - Could not initialize class org.docx4j.fonts.BestMatchingMapper The specific sequence of files included or processed is: [path of the file], line: 87