简体   繁体   中英

Extract tags from DOCX using POI-TL

POI-TL replaces the tags inside DOCX but I can't find any API that can give me a list of tags. Does anyone have experience using POI-TL to achieve this?

(I already tried building my own code to find the tags but word transforms tags into multiple runs (sometimes over 5) and so I gave up on writing my own code and started looking into prebuilt open source solutions like POI-TL). Thanks!

The Poi-tl API is:

com.deepoove.poi.XWPFTemplate.getElementTemplates()

You can visit like this:

new LogProcessor().process(template.getElementTemplates());

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM