Community
Participate
Working Groups
The XslFoDocumentBuilder is rather limited when it comes to page styling. At least some of the properties available should be supported so that users can define various page sizes, regions and margins. We should allow for the following properties to be set on *simple-page-master*: * page-width * page-height * margin-top * margin-bottom * margin-left * margin-right * reference-orientation The following properties should be allowed on *region-body* inside of *simple-page-master*: * margin-top * margin-bottom * margin-left * margin-right And we should allow for the following elements inside *region-body* * region-before (extent & precedence) * region-after (extent & precedence) * region-start (extent & precedence) * region-end (extent & precedence)
Created attachment 188674 [details] Added basic page styling for XslFoDocumentBuilder I missed the fact that page-width and page-height was already supported but some other changes have been done: * Unless a value is assigned to the *pageMargins* member variable the existing "margin" value will be used on the *simple-page-master*. * Likewise if a value is assigned to *bodyMargins* member variable it will override the margin set by the automatic footer. * Similar is handling of *region-after*. If the region has been specified it will override the automatically generated region. * Other regions may also be specified.
Created attachment 188675 [details] mylyn/context/zip
I consider this issue fixed. The patch just needs to be applied if there is any interest.
Patch applied, thanks Torkild!
Created attachment 201023 [details] mylyn/context/zip