I am saving my visio diagram as follows:
public void saveVisioFile(Diagram visioDiagram, String fileLocation) throws Exception {
VisioDebugUtils.dumpDiagramInfo(visioDiagram);
DiagramSaveOptions options = new DiagramSaveOptions(SaveFileFormat.VSDX);
// set Auto fit page property
options.setAutoFitPageToDrawingContent(true);
options.setSaveFormat(SaveFileFormat.VSDX);
visioDiagram.save(fileLocation, options);
}
What I see when I open it is this:
diagram.zip (189.5 KB)
As you can see the bottom objects are not on the page (although it has changed size from a save without the auto fit option).