Search in sources :

Example 1 with CTPageMar

use of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPageMar in project Gargoyle by callakrsos.

the class MSWord method applyPageMargin.

/**
	 * 페이지 마진을 설정한다.
	 */
public void applyPageMargin() {
    CTSectPr addNewSectPr = doc.getDocument().getBody().addNewSectPr();
    CTPageMar addNewPgMar = addNewSectPr.addNewPgMar();
    addNewPgMar.setLeft(BigInteger.valueOf(720L));
    addNewPgMar.setTop(BigInteger.valueOf(720L));
    addNewPgMar.setRight(BigInteger.valueOf(720L));
    addNewPgMar.setBottom(BigInteger.valueOf(720L));
}
Also used : CTPageMar(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPageMar) CTSectPr(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr)

Aggregations

CTPageMar (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPageMar)1 CTSectPr (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr)1