PageCount is zero with Aspose Diagram

Hi Aspose team


We are develop an application, and we met a problem that the page count we got from a vsd file with Aspose diagram 16.10.0 is zero

Here is our simple code for test:
Diagram d = new Diagram(“custom/input/visio/d3_2002.vsd”);
System.out.println(d.getPages().getCount());

I have uploaded this vsd file, please analyze this issue.

Thanks


Craig

Hi Craig,


Thank you for contacting support. We have tested your Visio diagram and code against the latest version 16.10.0 of Aspose.Diagram for Java API and managed to replicate the problem of the zero page count. It has been logged under ticket ID DIAGRAMJAVA-50425 in our bug tracking system. Your post has also been linked to this ticket. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.

Hi Craig,


Thank you for being patient. Please note, Aspose.Diagram API does not support old Visio versions less than 11. You have shared an old version of the Visio drawing. This feature has less priority because of the limited requests. Its support could take longer than usual. As a workaround, please open and save your Visio drawing using Microsoft Office Visio 2003 or higher.

The issues you have found earlier (filed as DIAGRAMJAVA-50425) have been fixed in Aspose.Diagram for Java 20.6.