Change Page Size

Change Page Size

The Page object represents the drawing area of a foreground page or a background page. The Pages property exposed by the Diagram class supports a collection of Aspose.Diagram.Page objects. The PageProps object represents the page attributes, such as the page width, height, and scale. This property can be used to change page size.

Use the PageProps property to change page size .

Set Page Size Programming Sample

The following piece of code change page size from a diagram.