1. Products
  2.   Diagram
  3.   Ruby
  4.   Aspose.Diagram Cloud SDK for Ruby

Aspose.Diagram Cloud SDK for Ruby

 
 

Ruby API to Read, Write & Convert Visio Diagrams

A Dominant Ruby Diagraming Library allows to Integrate Visio Diagram Generation, Editing, Formation, & Conversion Capabilities into Ruby Apps. It allows working with VSD, VSDX, VSS, VSSX, VST & more Programmatically.

What is Aspose.Diagram Cloud SDK for Ruby?

Visual aids like diagrams are essential across different sectors like engineering, architecture, and business planning. They help simplify intricate ideas and make communication easier. If you need a robust tool to craft, edit, and transform diagrams within your Ruby apps, the Aspose.Diagram Cloud SDK for Ruby is the ideal solution for you. It seamlessly merges with other cloud tools, apps, and supports a range of programming languages and platforms, making it a versatile choice for your diagram-related projects. This SDK is part of the Aspose Cloud platform, which provides various cloud-based APIs for working with documents. With the Ruby SDK, you can effortlessly create, edit, and manage diagrams in popular Microsoft Visio formats like VSD, VSDX, VSS, and more, without the need for complex installations or setups.

The Aspose.Diagram Cloud SDK for Ruby lets you export diagrams to PDF, PNG, JPEG, and HTML formats. It is a powerful tool that helps Ruby developers handle diagrams with ease. This flexibility makes it simple to share and view your diagrams on various platforms. This tool helps developers handle diagrams smoothly and productively. Whether you’re creating business process diagrams, technical drawings, or any other kind of diagram, this SDK simplifies the task, letting you concentrate on enhancing your application core functionality. So, give it a try and start designing, editing, and converting diagrams with ease, and take your applications to the next level.

Previous Next

Getting Started with Aspose.Diagram Cloud SDK for Ruby

The recommend way to install Aspose.Diagram Cloud SDK for Ruby is using RubyGems. Please use the following command for a smooth installation.

Install Aspose.Diagram Cloud SDK for Ruby via RubyGems

gem install aspose_diagram_cloud 
You can also download it directly from Aspose product page.

Visio Diagram Generation via Ruby API

Aspose.Diagram Cloud SDK for Ruby enables software developers to create various types of Visio diagrams from scratch inside Ruby applications. Whether developers need to design flowcharts, organizational charts, or network diagrams, this SDK provides the tools to build complex diagrams programmatically with ease. Moreover, users can manipulate existing diagrams using various features like adding, removing, or updating shapes, connectors, and text elements. This makes it a valuable tool for automating diagram updates and maintenance. The following example shows how software developers can create a Visio VDX diagram using Ruby code.

How to Generate New VDX Diagram inside Ruby Applications?

    # Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).

	configuration = AsposeDiagramCloud::Configuration.new
	configuration.app_sid = "MY_CLIENT_ID"
	configuration.app_key = "MY_CLIENT_SECRET"
	configuration.grant_type = "client_credentials"

	api = AsposeDiagramCloud::DiagramApi.new(configuration)

	name = "sample.vdx"
	folder = "my_output"
	is_overwrite = true
	result = api.create_new(name, {:name=>name, :is_overwrite=>is_overwrite, :folder=>folder})

Visio Diagram Export to Other File Formats

Aspose.Diagram Cloud SDK for Ruby has included complete support for loading and converting various types of diagrams inside Ruby applications. The Ruby SDK supports exporting diagrams to a variety of formats, including VSD, VSDX, VSS, VSSX, VTX, PDF, XPS, BMP, JPEG, TIFF, EMF, SVG, PNG, XAML, SWF, and HTML and many more. This flexibility ensures that your diagrams can be easily shared and viewed across different platforms. The following example shows how software developers can convert an existing Visio Diagrams to PDF file using Ruby commands.

How to Export a Diagram to PDF using Ruby API?

require 'aspose_diagram_cloud'

config = AsposeDiagramCloud::Configuration.new
config.client_id = 'YourClientId'
config.client_secret = 'YourClientSecret'

diagram_api = AsposeDiagramCloud::DiagramApi.new(config)

file_name = 'sample.vsdx'
output_format = 'pdf'

result = diagram_api.convert_diagram(file_name, output_format)
puts result

require 'aspose_diagram_cloud'

config = AsposeDiagramCloud::Configuration.new
config.client_id = 'YourClientId'
config.client_secret = 'YourClientSecret'

diagram_api = AsposeDiagramCloud::DiagramApi.new(config)

file_name = 'sample.vsdx'
output_format = 'pdf'

result = diagram_api.convert_diagram(file_name, output_format)
puts result

Apply Format & Style to Visio Diagrams via Ruby

Aspose.Diagram Cloud SDK for Ruby provides the capability to apply various types of styling and formatting to different of part a Visio Diagrams inside Ruby applications. The SDK enables users to customize the appearance of their diagrams with ease. Change shapes' colors, fonts, and styles to make your diagrams visually appealing and informative. Being cloud-based, the Cloud SDK eliminates the need for complex on-premises infrastructure. Whether you need to generate diagrams from scratch or manipulate existing ones, this SDK offers a robust set of features.

 English