java - Apache POI XWPF Paragraph on Same Page -


i have paragraph contains text , image , and text . these 3 sections present on new line .how ensure paragraph should rendered on same page when there not enough space on current page .if space there on current page should rendered on same page. have used :

    xwpfparagraph p11 = doc.createparagraph();     p11.setalignment(paragraphalignment.left);     xwpfrun r11 = p11.createrun();     p11.setpagebreak(true); 

but not p11 paragraph rendered on new page every time if there space on existing page .

xwpfparagraph p11 = doc.createparagraph(); p11.setalignment(paragraphalignment.left); xwpfrun r11 = p11.createrun(); p11.setpagebreak(true); xwpfparagraph p12 = doc.addparagraph(); xwpfparagraph p13 = doc.addparagraph(); xwpfparagraph p14 = doc.addparagraph(); 

Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

php - Mongodb connectivity error -