dundas.print.PaperSettings Class

 

Inheritance Hierarchy

 
Class
   dundas.print.PaperSettings
 

Constructors

 
  Name Description
init Ensure options.
 
 

Properties

 
  Name Description
height Gets or sets the paper height.
innerHeight Gets the usable height of the page after orientation and margins are considered.
innerWidth Gets the usable width of the page after orientation and margins are considered.
marginBottom Gets or sets size of the bottom page margin.
marginLeft Gets or sets size of the left page margin.
marginRight Gets or sets size of the right page margin.
marginTop Gets or sets size of the top page margin.
orientation Gets or sets unit the paper orientation.
orientedHeight Gets the height of the page after orientation is considered.
orientedWidth Gets the height of the page after orientation is considered.
size Gets or sets unit the page dimensions are specified in.
unit Gets or sets unit the page dimensions are specified in.
width Gets or sets the paper width.
 
 

Methods

 
  Name Description
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.

Static
fromPaperSize Creates a new paper setting with default margins and width, height, and unit that corresponds to one of the standard paper sizes.
setMargins Sets all margins to the specified value.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.
toUnit Converts all values from the current unit to the specified unit.