Export Visio Diagram to XPS in Ruby
Contents
[
Hide
]
Aspose.Diagram - Export Visio Diagram to XPS
To Export Visio Diagram to XPS using Aspose.Diagram Java für Rubin , einfach aufrufenExportToXps 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 XPS
diagram.save(data_dir + "Diagram.xps", Rjb::import('com.aspose.diagram.SaveFileFormat').XPS)
puts "Exported visio diagram to XPS."
Laufcode herunterladen
Download**Export Visio Diagram to XPS (Aspose.Diagram)**von einer der unten genannten Social-Coding-Sites: