public class PageProperties extends Object
Constructor and Description |
---|
PageProperties() |
Modifier and Type | Method and Description |
---|---|
Float |
getMarginBottom()
Gets the value of bottom page margin in points or null if the value is unset (in that case template page margin will be used)
|
Float |
getMarginLeft()
Gets the value of left page margin in points or null if the value is unset (in that case template page margin will be used)
|
Float |
getMarginRight()
Gets the value of right page margin in points or null if the value is unset (in that case template page margin will be used)
|
Float |
getMarginTop()
Gets the value of top page margin in points or null if the value is unset (in that case template page margin will be used)
|
PageSize |
getPageSize()
Gets the PageSize instance that describes the page size that will be used for production of output PDF document, or null if the page size specified in the template (possibly the default one) will be used
|
PageProperties |
setMargin(Float margin) |
PageProperties |
setMargin(Float topAndBottom, Float leftAndRight) |
PageProperties |
setMargin(Float top, Float leftAndRight, Float bottom) |
PageProperties |
setMargin(Float top, Float right, Float bottom, Float left) |
PageProperties |
setMarginBottom(Float marginBottom)
Sets bottom page margin in points
|
PageProperties |
setMarginLeft(Float marginLeft)
Sets left page margin in points
|
PageProperties |
setMarginRight(Float marginRight)
Sets right page margin in points
|
PageProperties |
setMarginTop(Float marginTop)
Sets top page margin in points
|
PageProperties |
setPageSize(PageSize pageSize)
Sets page size for the output PDF document.
|
public PageProperties setMarginLeft(Float marginLeft)
marginLeft
- value of left margin in points, or null
to use template value instead
public PageProperties setMarginRight(Float marginRight)
marginRight
- value of right margin in points, or null
to use template value instead
public PageProperties setMarginTop(Float marginTop)
marginTop
- value of top margin in points, or null
to use template value instead
public PageProperties setMarginBottom(Float marginBottom)
marginBottom
- value of bottom margin in points, or null
to use template value instead
public PageProperties setMargin(Float margin)
public PageProperties setMargin(Float topAndBottom, Float leftAndRight)
public PageProperties setMargin(Float top, Float leftAndRight, Float bottom)
public PageProperties setMargin(Float top, Float right, Float bottom, Float left)
public PageProperties setPageSize(PageSize pageSize)
pageSize
- page size to be used in the document
public Float getMarginLeft()
null
if the value is unset (in that case template page margin will be used)
public Float getMarginRight()
null
if the value is unset (in that case template page margin will be used)
public Float getMarginTop()
null
if the value is unset (in that case template page margin will be used)
public Float getMarginBottom()
null
if the value is unset (in that case template page margin will be used)
Copyright © 2019. All rights reserved.