Retrieve Visio Page Information in Ruby
Contents
[
Hide
]
Aspose.Diagram - Retrieve Visio Page Information
To Retrieve Visio Page Information using Aspose.Diagram Java for Ruby, simply invoke GetPageInfo module. Here you can see example code.
Ruby Code
data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
\# Call the diagram constructor to load diagram from a VSD file
diagram = Rjb::import('com.aspose.diagram.Diagram').new(data_dir + "Drawing.vsd")
#page = diagram.getPages().getPage(page_id)
page = diagram.getPages().getPage(0)
puts "Page ID : " + page.getName().to_s
Download Running Code
Download Retrieve Visio Page Information (Aspose.Diagram) from any of the below mentioned social coding sites: