首页 > 解决方案 > How to store some text in a ms word file in a specific format using java or php?

问题描述

I am looking to write some code using java or php which writes or store some data in a ms word file in a specific format. The format should be like the document is in A4 portrait mode divided into four equal blocks. All the blocks have a logo in the background and a text is written aligned to the center which is same in two blocks always.

I am sorry if this was not the right way to ask or if I have done something wrong. I am very new to programming and this is the first time I am asking a question on stackoverflow.

I looked for it on this website but couldn't find something similar.

标签: javadocx

解决方案


您可以尝试:Apache POI,它允许您使用 Java 创建、修改和显示 word 文档。这是一个很好的教程,可以提供帮助:

https://www.tutorialspoint.com/apache_poi_word/apache_poi_word_quick_guide


推荐阅读