public class PageDimensions extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
PageDimensions() |
PageDimensions(SectPr.PgSz pgSz,
SectPr.PgMar pgMar) |
PageDimensions(SectPr sectPr) |
| Modifier and Type | Method and Description |
|---|---|
SectPr.PgMar |
createPgMar()
Deprecated.
|
SectPr.PgSz |
createPgSize()
Deprecated.
|
int |
getColsNum() |
int |
getColsSpacing() |
int |
getFooterMargin()
Get the distance from the bottom edge of the paper to the bottom edge of the footer
|
int |
getHeaderMargin()
Get the distance from the top edge of the paper to the top edge of the header
|
SectPr.PgMar |
getPgMar() |
SectPr.PgSz |
getPgSz() |
int |
getWritableHeightTwips()
Deprecated.
|
int |
getWritableWidthTwips() |
void |
setMargins()
set Margins from docx4j.properties
|
void |
setMargins(MarginsWellKnown m) |
void |
setPgMar(SectPr.PgMar pgMar) |
void |
setPgSize()
set page size/orientation from docx4j.properties
|
void |
setPgSize(PageSizePaper sz,
boolean landscape) |
void |
setPgSz(SectPr.PgSz pgSz) |
public PageDimensions()
public PageDimensions(SectPr.PgSz pgSz, SectPr.PgMar pgMar)
public PageDimensions(SectPr sectPr)
public SectPr.PgSz getPgSz()
public void setPgSz(SectPr.PgSz pgSz)
@Deprecated public SectPr.PgSz createPgSize()
public SectPr.PgMar getPgMar()
public void setPgMar(SectPr.PgMar pgMar)
@Deprecated public SectPr.PgMar createPgMar()
public void setMargins()
public void setMargins(MarginsWellKnown m)
public void setPgSize()
public void setPgSize(PageSizePaper sz, boolean landscape)
public int getWritableWidthTwips()
@Deprecated public int getWritableHeightTwips()
public int getHeaderMargin()
public int getFooterMargin()
public int getColsNum()
public int getColsSpacing()
Copyright © 2007-2020. All Rights Reserved.