1. Products
  2.   Presentation
  3.   Ruby
  4.   Aspose.Slides Cloud SDK for Ruby

Aspose.Slides Cloud SDK for Ruby

 
 

Ruby SDK Read, Write & Convert PowerPoint Presentations

Ruby API for generating, modifying, rendering & converting PowerPoint (PPT/PPTX) & OpenOffice presentations without using Microsoft PowerPoint.

What is Aspose.Slides Cloud SDK for Ruby?

Aspose.Slides Cloud SDK for Ruby is a robust and platform-independent Ruby PowerPoint API that enables developers to create, edit, read, and manipulate PowerPoint and OpenOffice presentations directly in the cloud. With this Open Source Ruby PPTX API, you can effortlessly create PowerPoint presentations in formats like PPT, PPTX, PPS, PPSX, PPTM, PPSM, POTX, POTM, ODP, OTP, and more. It allows developers to integrate comprehensive PowerPoint features into their Ruby-based apps, including support for generating new presentations, merging PowerPoint presentations via Ruby, and even building a presentation from selected slides of other files. With this SDK, you can easily apply themes and templates to your presentations to ensure a consistent look and feel across all of your slides.

This SDK also provides powerful tools to convert PowerPoint to PDF via Ruby and other formats like ODP, OTP, TIFF, PDF, XPS, JPEG, PNG, GIF, BMP, SVG, SWF, and HTML. Developers can read PowerPoint presentations Ruby-side, extract images and shapes, manage slide properties, and apply themes across slides. The library also supports splitting and combining presentations, removing or copying slides, and customizing content programmatically. Its user-friendly interface and broad format support make it ideal for any Ruby developer looking to build or manage presentations efficiently in cloud-based environments.

Previous Next

Getting Started with Aspose.Slides Cloud SDK for Ruby

The recommend way to install Aspose.Slides Cloud SDK for Ruby is using RubyGems. To install the SDK on your system, please run the following command:

Install Aspose.Slides Cloud SDK for Ruby via RubyGems

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

PPT, PPTX Presentations Creation via Ruby

Aspose.Slides Cloud SDK for Ruby has included complete support for PowerPoint presentation creation and handling inside their own Ruby application. The Ruby SDK supports several important features related to presentations manipulation and allows creating presentation in numerous file formats such as PPT, PPTX, PPS, PPSX, PPTM, PPSM, POTX, POTM ODP, OTP & more. It supports features like creating a new empty presentation from scratch, reading existing presentations, protecting presentation by applying password, create new Presentation via HTML document, generate presentation from PDF document, split/merge presentations and many more.

How to Create an Empty PowerPoint Presentation via Ruby API?

require 'aspose_slides_cloud'

configuration = AsposeSlidesCloud::Configuration.new
configuration.app_sid = "my_client_id"
configuration.app_key = "my_client_key"

slides_api = AsposeSlidesCloud::SlidesApi.new(configuration)

response = slides_api.create_presentation("Sales.pptx", nil, nil, nil, "Data", "Main")
print response.self_uri.href # https://api.aspose.cloud/v3.0/slides/Sales.pptx?folder=Data

Add & Manage Slides Notes via Ruby

Aspose.Slides Cloud SDK for Ruby makes it easy for software developers to handle tasks related to slide notes inside their own Ruby applications. There are several important features related to slide notes such as adding notes to presentations, updating existing notes from presentations, extracting notes from slides, reading notes from an existing presentation, and many more. The following example shows how Ruby developers can add notes to a presentation using Ruby commands.

How to Add Speaker Notes to a PowerPoint Presentation via Ruby?

require "aspose_slides_cloud"

include AsposeSlidesCloud

configuration = AsposeSlidesCloud::Configuration.new
configuration.app_sid = "MyClientId"
configuration.app_key = "MyClientSecret"

slides_api = AsposeSlidesCloud::SlidesApi.new(configuration)

# Prepare notes for the slide.
notes_slide = AsposeSlidesCloud::NotesSlide.new
notes_slide.text = "Start with our company."

# Create the notes for the second slide.
current_notes_slide = slides_api.create_notes_slide("MyPresentation.pptx", 2, notes_slide, nil, "MyFolder")

# Print the resource reference for the notes slide.
print current_notes_slide.self_uri.href

Working with Charts in Presentation via Ruby

Aspose.Slides Cloud SDK for Ruby enables software developers to handle charts programmatically inside their own PowerPoint presentations using Ruby commands. Software developers can create different types of charts inside their presentation such as column charts, pie charts, sunburst charts, scattered charts, and bubble charts. There are various features available for working with charts such as inserting a new chart to a slide, setting chart wall, setting chart axis properties, setting chart legends, and many more. The following example shows how to update some properties of the horizontal axis inside ruby applications.

How to Update Some Properties of the Horizontal Axis via Ruby?

configuration = AsposeSlidesCloud::Configuration.new
configuration.app_sid = "MyClientId"
configuration.app_key = "MyClientSecret"
api = AsposeSlidesCloud::SlidesApi.new(configuration)

#Code example will be added soon.

Insert & Manage Text in Presentation via Ruby API

Aspose.Slides Cloud SDK for Ruby allows software developers to insert and manipulate text and objects within PowerPoint presentations in the cloud. The SDK includes several important features for handling text in presentation such as adding and removing text, changing fonts and colors, inserting a new paragraph, updating text properties, deleting unwanted paragraphs, replacing text on a slide, highlighting text, resizing and repositioning objects, getting Paragraph rectangle, extracting text from a presentation and many more. The following example shows how to highlight text in a shape inside a PowerPoint presentation using Ruby code.

How to Highlight Text in Shape inside PowerPoint Presentation via Ruby?

configuration = AsposeSlidesCloud::Configuration.new
configuration.app_sid = "MyClientId"
configuration.app_key = "MyClientSecret"
api = AsposeSlidesCloud::SlidesApi.new(configuration)
result = api.highlight_shape_text("MyPresentation.pptx", 2, 1, "important", "00FF0000")
p(result.text)

 English