Skip to content

Improve the methods for Apache POI, such as read and write SDT in .docx file

License

Notifications You must be signed in to change notification settings

cnless/poi-enhance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

what is poi-enhance?

Poi-enhance adds operations on SDT based on apache poi.

dependency

<dependency>
  <groupId>io.github.cnless</groupId>
  <artifactId>poi-enhance</artifactId>
  <version>1.0.0</version>
</dependency>

usage

//create a XWPFDocumentEnhance Object
            XWPFDocumentEnhance xwpfDocumentEnhance = new XWPFDocumentEnhance(fileInputStream);
            //get all StructuredDocumentTagEnhance,StructuredDocumentTagEnhance contains all method to operate StructuredDocumentTag
            List<StructuredDocumentTagEnhance> sdtList = xwpfDocumentEnhance.getSdtList();
            //save the file
            xwpfDocumentEnhance.writeFile(fileOutputStream);
            xwpfDocumentEnhance.close();

About

Improve the methods for Apache POI, such as read and write SDT in .docx file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages