public class PageSetup
extends java.lang.Object
implements java.lang.Cloneable
Represents a page setup object is used for configuration output page-set.
Constructor and Description |
---|
PageSetup()
Initializes a new instance of the
PageSetup class. |
Modifier and Type | Method and Description |
---|---|
PageSetup |
deepClone() |
static Page |
getA4() |
boolean |
getAdjustToWidestPage()
Gets or sets flag that determines case when page size will be adjusted to widest page in document.
|
Page |
getAnyPage()
Gets or sets all pages configuration in the the page-sequence.
|
int |
getAtPagePriority()
Gets or sets
AtPagePriority which will determine order of applying page size declarations. |
Page |
getFirstPage_Rename_Namesake()
Gets dimensions of first page, which is used for Device.WindowSize determination.
|
Page |
getFirstPage()
Gets or sets the first page configuration.
|
Page |
getLastPage()
Gets or sets the last page configuration.
|
Page |
getLeftPage()
Gets the Odd Page configuration.
|
Page |
getRightPage()
Gets the Even Page configuration.
|
protected java.lang.Object |
memberwiseClone() |
void |
setAdjustToWidestPage(boolean value)
Gets or sets flag that determines case when page size will be adjusted to widest page in document.
|
void |
setAnyPage(Page value)
Gets or sets all pages configuration in the the page-sequence.
|
void |
setAtPagePriority(int value)
Gets or sets
AtPagePriority which will determine order of applying page size declarations. |
void |
setFirstPage(Page value)
Gets or sets the first page configuration.
|
void |
setLastPage(Page value)
Gets or sets the last page configuration.
|
void |
setLeftRightPage(Page leftPage,
Page rightPage)
Sets the Left/Right page configuration.
|
public PageSetup()
Initializes a new instance of the PageSetup
class.
public static Page getA4()
public int getAtPagePriority()
Gets or sets AtPagePriority
which will determine order of applying page size declarations. By default options will override css @page
rules .
https://www.w3.org/TR/CSS2/page.html#page-selectors
public void setAtPagePriority(int value)
Gets or sets AtPagePriority
which will determine order of applying page size declarations. By default options will override css @page
rules .
https://www.w3.org/TR/CSS2/page.html#page-selectors
public boolean getAdjustToWidestPage()
Gets or sets flag that determines case when page size will be adjusted to widest page in document.
This options is time-consuming so time of document processing can be increased in two times. Adjustment will
take place only if widest page in document is wider than page size determined in PageSetup
. Adjusted
page size will be used for all pages in document.
public void setAdjustToWidestPage(boolean value)
Gets or sets flag that determines case when page size will be adjusted to widest page in document.
This options is time-consuming so time of document processing can be increased in two times. Adjustment will
take place only if widest page in document is wider than page size determined in PageSetup
. Adjusted
page size will be used for all pages in document.
public Page getFirstPage_Rename_Namesake()
Gets dimensions of first page, which is used for Device.WindowSize determination.
public void setLeftRightPage(Page leftPage, Page rightPage)
Sets the Left/Right page configuration.
leftPage
- The left page.rightPage
- The right page.public Page getLeftPage()
Gets the Odd Page configuration.
public Page getRightPage()
Gets the Even Page configuration.
public Page getAnyPage()
Gets or sets all pages configuration in the the page-sequence.
Value: Any page.public void setAnyPage(Page value)
Gets or sets all pages configuration in the the page-sequence.
Value: Any page.public Page getFirstPage()
Gets or sets the first page configuration.
Value: The first page.public void setFirstPage(Page value)
Gets or sets the first page configuration.
Value: The first page.public Page getLastPage()
Gets or sets the last page configuration.
Value: The last page.public void setLastPage(Page value)
Gets or sets the last page configuration.
Value: The last page.public PageSetup deepClone()
protected java.lang.Object memberwiseClone()