Export Visio Diagram to SVG in Ruby
Contents
[
Hide
]
Aspose.Diagram - Export Visio Diagram to SVG
To Export Visio Diagram to SVG using Aspose.Diagram Java für Rubin , einfach aufrufenExportToSvg Modul. Hier sehen Sie Beispielcode.
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")
\# Save as SVG
diagram.save(data_dir + "Diagram.svg", Rjb::import('com.aspose.diagram.SaveFileFormat').SVG)
puts "Exported visio diagram to SVG."
Laufcode herunterladen
Download**Export Visio Diagram to SVG (Aspose.Diagram)**von einer der unten genannten Social-Coding-Sites: