Free Support Forum -

How to set page size?

Using the Java Aspose.Diagram library, how do you set page size? I’m trying to change mine to 11x17 in.


Thanks for contacting support.

Please use following code snippet to set the page size of a Diagram:

// load Visio
Diagram diagram = new Diagram(“C:/tmp/test.vsdx”);
// set height of the page
// set width of the page

In case you still face any issue, please share your sample input diagram with us. We will test the scenario in our environment and address it accordingly.

Thank you, it looks like that did it