如何在 Docx4j.net 中禁用 Plutext?

How to disable Plutext in Docx4j.net?

我正在尝试 运行 TOC 更新示例,但每当我尝试生成带有编号的 TOC 时,我都会收到以下错误:

[INFO]  org.docx4j.Docx4J - org.docx4j.convert.out.fo.FOExporterVisitor not found; 
if you want it, add docx4j-export-FO to your path. Doing so will disable Plutext's 
PDF Converter./norg.docx4j.convert.out.fo.FOExporterVisitor
[INFO]  org.docx4j.jaxb.NamespacePrefixMapperUtils - Using NamespacePrefixMapper 
RelationshipsPartSunInternal, which is suitable for Java 6

Looks like you have the wrong host in your endpoint URL 'http://convertereval.plutext.com:80/v1/00000000-0000-0000-0000-000000000000/convert'

据我所知,禁用 Plutext 的转换器就足够了。问题是我无法实现这一目标 - 尝试将 docx4j-export-fo.jar 添加到路径但没有帮助。请指导我如何使它工作。

看起来现在没有 docx4j-export-fo dll,所以如果你想要 ToC 页码,最好的办法可能是在本地安装转换器(从 https://converter-eval.plutext.com/ 获取),然后使用您的属性文件指向它。