i am trying to insert page break end of end page, but my code is not working

                XWPFDocument doc = new XWPFDocument(OPCPackage.open(filePath));
                int count =0;

                                List<XWPFTable> tables = doc.getTables();
               
                        for (XWPFTable table : tables) {
                                
doc.createParagraph().createRun().addBreak(BreakType.PAGE);
                                count++;
                        }   
                        
                        System.out.println("Total tables in doc "+count);



--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@poi.apache.org
For additional commands, e-mail: user-h...@poi.apache.org

Reply via email to