
## PageSize(paper_size_format) {#PaperSizeFormat}

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



```python
def __init__(self, paper_size_format):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| paper_size_format | [PaperSizeFormat](/diagram/python-net/aspose.diagram.saving/papersizeformat) | Can be [PaperSizeFormat](/diagram/python-net/aspose.diagram.saving/papersizeformat). |


## PageSize(width, height) {#float-float}

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



```python
def __init__(self, width, height):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| width | float | Page width in points for the the generated images. |
| height | float | Page height in points for the the generated images. |



### See Also
* module [aspose.diagram.saving](../../)
* class [PageSize](/diagram/python-net/aspose.diagram.saving/pagesize)
