I want to set page-margins for word document created using apache poi-3.9. I found it can be done using CTPageMar
but CTPageMar
is not being resolved. I am using apache poi-3.9
I tried this
CTSectPr sectPr = document.getDocument().getBody().addNewSectPr();
CTPageMar pageMar = sectPr.addNewPgMar();
pageMar.setLeft(BigInteger.valueOf(720L));
pageMar.setTop(BigInteger.valueOf(1440L));
pageMar.setRight(BigInteger.valueOf(720L));
pageMar.setBottom(BigInteger.valueOf(1440L));