set_page_size method

set_page_size

Sets page size. To create pages with different sizes in one document use PsDocument.SetPageDevice method just after this method.

def set_page_size(self, width, height):
    ...
ParameterTypeDescription
widthfloatThe width of page in resulting PostScript file.
heightfloatThe height of page in resulting PostScript file.

See Also