public interface PageMargins
Modifier and Type | Interface and Description |
---|---|
static interface |
PageMargins.CustomMargins
Page margins in points.
|
Modifier and Type | Method and Description |
---|---|
static PageMargins |
defaultMargins()
Creates default margins for the web page.
|
static PageMargins |
none()
Creates empty margins for the web page.
|
static PageMargins.CustomMargins |
of(int left,
int right,
int top,
int bottom)
Creates custom margins for the web page in points.
|
static PageMargins defaultMargins()
static PageMargins none()
static PageMargins.CustomMargins of(int left, int right, int top, int bottom)
left
- the margin on the left side of the sheetright
- the margin on the right side of the sheettop
- the margin on the top side of the sheetbottom
- the margin on the bottom side of the sheetjava.lang.IllegalArgumentException
- if any of the input parameters is negative