- Code: Select all
objectFactory = new ObjectFactory();
wordMLPackage = WordprocessingMLPackage.createPackage();
mainDocumentPart = wordMLPackage.getMainDocumentPart();
Relationship rHeader = createHeaderPart();
createHeaderReference(wordMLPackage, rHeader);
Relationship rFooter = createFooterPart();
createFooterReference(wordMLPackage, rFooter);
setStyleDefintionsPart();
This works very fine. But now I want to set my page margins to a specific value.
I already have method and PgMar Object.
private PgMar pgMar = null;
public void setMargins(long top, long right, long left, long bottom){
if(pgMar ...