(The open source Java library for manipulating docx files)
by Michael » Wed Jul 05, 2023 7:59 pm
Is it possible to set mirror margins for the document? I see that using the PgMar object, only margins sizes can be set.
-
Michael
-
- Posts: 28
- Joined: Tue Jun 20, 2023 11:02 pm
by jason » Thu Jul 06, 2023 8:31 pm
This is done in the DocumentSettingsPart; CTSettings contains:
Using java Syntax Highlighting
/**
* Gets the value of the mirrorMargins property.
*
* @return
* possible object is
* {@link BooleanDefaultTrue }
*
*/
public BooleanDefaultTrue getMirrorMargins
() {
return mirrorMargins
;
}
/**
* Sets the value of the mirrorMargins property.
*
* @param value
* allowed object is
* {@link BooleanDefaultTrue }
*
*/
public void setMirrorMargins
(BooleanDefaultTrue value
) {
this.
mirrorMargins = value
;
}
Parsed in 0.014 seconds, using
GeSHi 1.0.8.4
-
jason
-
- Posts: 4080
- Joined: Wed Mar 19, 2008 11:47 pm
by Michael » Thu Jul 06, 2023 9:03 pm
Thanks, I implemented it and it works fine.
-
Michael
-
- Posts: 28
- Joined: Tue Jun 20, 2023 11:02 pm
Return to docx4j
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 73 guests