Microsoft® Visio File Splitting via Java

Split single Visio document into different files using Java code within Java based applications

 

Java Visio Library is capable to split Visio document into multiple pages within Java based applications. Supported file formats include VDW, VDX, VSD, VSDM, VSDX, VSS, VSSM,VSSX,VST,VSTM,VSTX,VSX,VTX.

Split Visio Document into Multiple Files

The simplest way to split Visio files page wise is, Accessing all pages via pages , Iterating through each page and calling the Copy method. Finally saving it into a specified path.

  • Load the Visio file with full path using diagram class .
  • Iterate throug each page
  • Create a new Diagram class object
  • Copy the page via Copy method
  • Call the save() method and pass the file name (full path) having relevant SaveFormat.
Java Code to Split Visio Files