Module BaseDoc :: Class PaperSize
[frames] | no frames]

Class PaperSize

source code

Defines the dimensions of a sheet of paper. All dimensions are in centimeters.

Instance Methods
 
__init__(self, name, height, width)
Create a new paper style with.
source code
 
get_name(self)
Return the name of the paper style
source code
 
get_height(self)
Return the page height in cm
source code
 
set_height(self, height)
Set the page height in cm
source code
 
get_width(self)
Return the page width in cm
source code
 
set_width(self, width)
Set the page width in cm
source code
 
get_height_inches(self)
Return the page height in inches
source code
 
get_width_inches(self)
Return the page width in inches
source code
Method Details

__init__(self, name, height, width)
(Constructor)

source code 

Create a new paper style with.

Parameters:
  • name - name of the new style
  • height - page height in centimeters
  • width - page width in centimeters