Hello!
I parse the word file and want to identify page break.
I try to use method "XWPFParagraph.isPageBreak()", but it always returns false.
Why can I solve this problem? Maybe I use method wrong or other ways to identify page break exist?
I parse the word file and want to identify page break.
I try to use method "XWPFParagraph.isPageBreak()", but it always returns false.
Code:
sample = new XWPFDocument(new FileInputStream(samplePath));
List<XWPFParagraph> paragraphs = sample.getParagraphs();
for (XWPFParagraph par: paragraphs
) {
System.out.println(par.isPageBreak());
}