Thank you for contacting support. Unfortunately, there is no direct way to include or not include the hidden Visio pages. We have logged the feature requests as below:
DIAGRAMJAVA-50311: Prevent export of the hidden Visio pages in the PDF
DIAGRAMJAVA-50312: Prevent export of the hidden Visio pages in the HTML
Please also list down all the other output formats in which you normally export the Visio drawings. We’ll log all the feature requests separately. Your post has also been linked to these tickets. We’ll let you know once a significant progress has been made in this regard. We’re sorry for the inconvenience caused.
As a workaround, you can iterate through the pages and check whether the page is hidden or not, and then before exporting to the other supported formats, please specify the page range and exclude the hidden pages.
You can check whether a Visio page is hidden or not by calling the code below:
// load an existing Visio Diagram diagram = new Diagram(dataDir + “Drawing1.vsdx”); // get a particular page Page page = diagram.getPages().getPage(“Page-2”); // check visiblity int visible = page.getPageSheet().getPageProps().getUIVisibility().getValue();
Please also refer to this help topic: Specifying Visio Save Options
We hope, this helps. Please let us know in case of any confusion or questions.
The issues you have found earlier (filed as DIAGRAMJAVA-50311;DIAGRAMJAVA-50312;DIAGRAMJAVA-50313;DIAGRAMJAVA-50314;DIAGRAMJAVA-50315;DIAGRAMJAVA-50316;DIAGRAMJAVA-50317) have been fixed in Aspose.Diagram for Java 6.3.0.