set_size method

set_size

Sets the type of slide size and scales content using scale type. Assigning any value except SlideSizeType.CUSTOM will change SlideSize.size accordingly, but will keep SlideSize.orientation intact.

def set_size(self, type, scale_type):
    ...
ParameterTypeDescription
typeSlideSizeTypeSlide size type.
scale_typeSlideSizeScaleTypeScale type of slide content.

set_size

Sets the size in points and scales content using scale type. Assigning any value will reset SlideSize.type property to SlideSizeType.CUSTOM and set SlideSize.orientation.

def set_size(self, width, height, scale_type):
    ...
ParameterTypeDescription
widthfloatWidth.
heightfloatHeight.
scale_typeSlideSizeScaleTypeScale type of slide content.

See Also