有没有办法使用Apache POI修改Microsoft Word页脚?

时间:2021-08-13 20:20:30

I need to modify the content of a Word footer using a Java API.

我需要使用Java API修改Word页脚的内容。

The Apache POI project does not seem to support this functionality:

Apache POI项目似乎不支持此功能:

WARNING - you shouldn't change the headers or footers, as offsets are not yet updated!

警告 - 您不应更改页眉或页脚,因为偏移尚未更新!

My question is twofold:

我的问题有两个:

  1. Does anyone know of a way to do this using POI's API?
  2. 有没有人知道使用POI的API做到这一点的方法?

  3. Is there a different java API which does offer this functionality?
  4. 是否有不同的Java API提供此功能?

1 个解决方案

#1


Can't speak for POI but Aspose.Words will let you manipulate Doc files. It ain't cheap though.

不能代表POI,但Aspose.Words可以让你操作Doc文件。虽然它并不便宜。

#1


Can't speak for POI but Aspose.Words will let you manipulate Doc files. It ain't cheap though.

不能代表POI,但Aspose.Words可以让你操作Doc文件。虽然它并不便宜。