问题标签 [docx4j.net]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
663 浏览

docx4j - docx4j.NET 安装问题

我已经docx4j.NET 3.0.1从 Nuget 安装了 vs2012。当我尝试通过此调用使用库时

我收到此错误:

发行版中的slf4j-api版本docx4j.net 3.0.11.7.5.0.

包的分发有问题吗?

0 投票
2 回答
404 浏览

c# - 将图像嵌入为 base64 而不是输出到文件夹

从 docx 转换为 html 时,您可以指定任何图像的输出路径

生成的 html 文档通过文件引用图像:

相反,我希望转换器将文件嵌入为 base64。这可能吗?

0 投票
1 回答
159 浏览

docx4j - 邮件合并特定关键字

我想知道是否有某种方式可以在docx4j中处理邮件合并特定关键字,例如“ Ask ”、“ Fill-in ”、“ If Then Else ”等。这是我希望在代码中处理的关键字的完整列表。

https://support.office.com/en-us/article/Set-the-rules-for-a-mail-merge-d546ee7e-ab7a-4d6d-b488-41f9e4bd1409

0 投票
1 回答
264 浏览

docx4j - Docx4j API 为输入 dotx 执行邮件合并以输出 docx 文件并发出警报

当我们通过 FieldMailMerge.java 执行邮件合并时,我们在 docx 文件中获得了输出,但是当我们在 Microsoft Word 2010 中打开它时,会出现一条警告消息:

在此处输入图像描述

0 投票
0 回答
26 浏览

c# - Docx4j.NET mail merge labels issue ('next record' ignored)

I wanted to use docx4j.NET to automate the creation of address labels. A basic docx file with merge fields separated by the "next record" instruction, the latter seems to be ignored when merging.

I get pages filled with one address duplicated in each label cell (plus the "next record" token). e.g. for 10 addresses I do not get one page with ten addresses but I get 10 pages each having 10 labels filled with the same address.

Can anyone confirm or do I have to change either my code or the docx file?

Here the code I use: