docx Template Docx4j replacing text in Java

后端 未结 2 762
情书的邮戳
情书的邮戳 2021-01-26 07:01

Im new to Docx4j and my task is to replace some Text of a docx Template. I read the getting Started Guide of docx4j but I don\'t think I fully understood the whole concept. Well

2条回答
  •  不思量自难忘°
    2021-01-26 07:02

    docx4j source code has been on GitHub for a while now; that svn repository is obsolete.

    The equivalent sample is now called VariableReplace. That code is a bit more efficient, but you need to build it yourself, or use a current nightly build.

    You'll probably find running VariablePrepare addresses your issue.

提交回复
热议问题