I am wondering how I can get page number in docx4j
My issue is that I created a table and have to remove some borders between some rows but that made table with no bottom borders before page break
So I need information about page number to do something like this
if(currentElementPageNumber != precedentElementPageNumber)
ctBorderTop.setVal(STBorder.Double);
tcBorder.setTop(ctBorderBottom);
tcpr2.setTcBorders(tcBorder);
Or a way to detect page break, any ideas would be helpfull
I have found a work arround this what i did is make table border without insideH border
CTBorder nilBorder= new CTBorder();
ctBorder.setVal(STBorder.NIL);
tblBorders.setInsideH(nilBorder);
then add bottom border to row depends on my condition