We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Including or excluding hidden pages from a visio output

Hello,


While converting a Visio document to Pdf or Html or any other format, is there any option to specify whether we want to save hidden-pages or not.

Like in excel, in com.aspose.cells.HtmlSaveOptions class, we can use
htmlSaveOptions.setHiddenColDisplayType(0);
htmlSaveOptions.setHiddenRowDisplayType(1);

Similarly, while saving a visio document to some other format, is there any option to specify if we want to include the hidden pages in the output or not?

Thanks,
Neha

Hi Neha,

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:

[Java]

// 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.

Hello,


Thanks for your reply.

Besides html and pdf, the other output formats used by us are Image (all image formats - png, jpeg, svg and gif) and XPS.

Thanks,
Neha
Hi Neha,

Thank you for the details. We have logged all the tickets 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
DIAGRAMJAVA-50313: Prevent export of the hidden Visio pages in the PNG
DIAGRAMJAVA-50314: Prevent export of the hidden Visio pages in the JPEG
DIAGRAMJAVA-50315: Prevent export of the hidden Visio pages in the SVG
DIAGRAMJAVA-50316: Prevent export of the hidden Visio pages in the GIF
DIAGRAMJAVA-50317: Prevent export of the hidden Visio pages in the XPS

Your post has also been linked to these tickets. We'll keep you informed regarding any available updates.

Hi Neha,


Thank you for being patient. We have a good news for you that the issue IDs DIAGRAMJAVA-50311, DIAGRAMJAVA-50312, DIAGRAMJAVA-50313, DIAGRAMJAVA-50314, DIAGRAMJAVA-50316 and DIAGRAMJAVA-50317 have now been resolved. If there is no issue in the QA phase, then their fixes will be included in the next version of Aspose.Diagram for Java 6.3.0. We’ll inform you via this forum thread as soon as the new release is published.

Hi Neha,


Thank you for being patient. We have a good news for you that the issue ID DIAGRAMJAVA-50315 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version of Aspose.Diagram for Java 6.3.0. We’ll inform you via this forum thread as soon as the new release is published.

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.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.