## PsDocument.SetPageSize method

Sets page size. To create pages with different sizes in one document use [`SetPageDevice`](../setpagedevice/) method just after this method.

```csharp
public void SetPageSize(float width, float height)
```

| Parameter | Type | Description |
| --- | --- | --- |
| width | Single | The width of page in resulting PostScript file. |
| height | Single | The height of page in resulting PostScript file. |

### See Also

* class [PsDocument](../)
* namespace [Aspose.Page.EPS](../../psdocument/)
* assembly [Aspose.Page](../../../)


