The answer by @romeara no longer works. In the most recent release of Odfdom, 0.12.0, there is simply no class PageLayoutProperties
. Instead the setProperty
of the OdfStylePageLayout
class must be used. This is the method used in the source @romeara linked to.