Get Shape Hyperlink Data from a Visio Drawing in PHP

To Get Shape Hyperlink Data using Aspose.Diagram Java for PHP, simply invoke GetShapeHyperlinkData module. Here you can see example code.

PHP Code

 # Create instance of Diagram

$diagram = new Diagram($dataDir . "drawing.vdx");

\# Get a particular shape

$shape=$diagram->getPages()->getPage("Flow 1")->getShapes()->getShape(1);

$hyperlinks=$shape->getHyperlinks();

$i=0;

while ($i<(int)(string)$hyperlinks->getCount()) {

$hyperlink=$hyperlinks->get($i);

print "Address: " . (string)$hyperlink->getAddress()->getValue();

print "Sub Address: " . (string)$hyperlink->getSubAddress()->getValue();

print "Description: " . (string)$hyperlink->getDescription()->getValue();

$i+=1;

}

Download Running Code

Download Get Shape Hyperlink Data from a Visio Drawing (Aspose.Diagram) from any of the below mentioned social coding sites: