Move Page position in Visio drawing and enhanced export of Visio drawing to XPS

Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.Diagram for .NET logoWe are pleased to announce that the new version 18.3 of Aspose.Diagram API is now live. The recent version 18.3 has added support of changing the position of Page in Visio drawings, and the export of the VSD to XPS has been improved. The recent version 18.3 also covers enhancements and regular bug fixes. We recommend our client to incorporate the latest upgrade of Aspose.Diagram API to take benefit of improved functionality and bug fixes. Please use the following links for downloading Aspose.Diagram for .NET and Java assemblies.

Add a new Page to Visio drawing by page index

Developers can add a new page to the target page index, and they can also change the position of an existing page in the Visio drawing. Developers can change the position of the Page with MoveTo member of the Page class as follows:
C#

// import diagram
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");
Page newPage = new Page(1);
// move page in the diagram
newPage.MoveTo(2);
diagram.Save(dataDir + "Drawing1.vsdx", SaveFileFormat.VSDX);

Java

// import diagram
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");
Page newPage = new Page(1);
// move page in the diagram
newPage.moveTo(2);
diagram.save(dataDir + "Drawing1.vsdx", SaveFileFormat.VSDX);

Aspose.Diagram for .NET and Java Resources

The following resources will help you work with Aspose.Diagram for .NET: