custom_paper_size方法

custom_paper_size(width, height)

设置自定义纸张尺寸,以英寸为单位。

def custom_paper_size(self, width, height):
    ...
范围 类型 描述
width float 纸张的宽度。
height float 纸张的高度。

也可以看看