Javatpoint Logo
Javatpoint Logo

Apache POI Extract Paragraph

To extract paragraph text, we use getParagraphs() method of XWPFDocument class. This method returns a list of all paragraphs of document which can be stored in a list variable and get by iterating loop.

Lets see an example in which we are extracting paragraph using a Java program.

Apache POI Extracting Paragraph Example

Input:


Apache POI Extract Paragraph

Output:

Apache POI (Poor Obfuscation Implementation) is a project design and developed by Apache Software
Foundation. It is a collection of pure Java libraries, used to read and write Microsoft office 
files such as Word, PowerPoint etc. The purpose was to design a cross-platform API that can 
manipulate various file formats of Microsoft Office and Open Office Documents.





Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA