Retrieve Visio Connectors Information in PHP

Aspose.Diagram - Retrieve Visio Connectors Information

To Retrieve Visio Connectors Information using Aspose.Diagram Java for PHP, simply invoke GetConnectorsInfo module. Here you can see example code.

PHP Code

 # Create instance of Diagram

$diagram = new Diagram($dataDir."Drawing.vsd");

$connectors = $diagram->getPages()->getPage(0)->getConnects();

$i = 0;

while ($i<sizeof($connectors->getCount())) {

$connector =$connectors->get($i);

\# Display information about the Connectors

print "From Shape ID : ".(string)$connector->getFromSheet().PHP_EOL;

print "To Shape ID : ".(string)$connector->getToSheet().PHP_EOL;

$i+=1;

}

Download Running Code

Download Retrieve Visio Connectors Information (Aspose.Diagram) from any of the below mentioned social coding sites: