I parse the word file and want to identify page break.
I try to use method "XWPFParagraph.isPageBreak()", but it always returns false.
PHP Code:
 sample = new XWPFDocument(new FileInputStream(samplePath));
            List<XWPFParagraph>  paragraphs = sample.getParagraphs();

            for (XWPFParagraph par: paragraphs
                 ) {

Why can I solve this problem? Maybe I use method wrong or other ways to identify page break exist?