PageSize constructor

PageSize(paper_size_format)

Initializes a new instance of this class that can be used to set page size for the generated images.

def __init__(self, paper_size_format):
    ...
ParameterTypeDescription
paper_size_formatPaperSizeFormatCan be PaperSizeFormat.

PageSize(width, height)

Initializes a new instance of this class that can be used to set page size for the generated images.

def __init__(self, width, height):
    ...
ParameterTypeDescription
widthfloatPage width in points for the the generated images.
heightfloatPage height in points for the the generated images.

See Also