hi All,
i am trying to create a docx file through docx4j tool and need to add page break in the document.
Can any one help in doing so?
i am trying following code but it doesn't seem to work.
P para = factory.createP();
R run = factory.createR();
run.setParent(new R.LastRenderedPageBreak().getParent());
para.getParagraphContent().add(run);
body.getEGBlockLevelElts().add(para);
Thanks for help.
Bhavin