Documents Editor SDK for Ruby Applications

Cloud REST API to incorporate document editing features within Ruby applications. No external application needed to edit documents of all popular formats.

  • GroupDocs.Editor for cURL
  • GroupDocs.Editor for .NET
  • GroupDocs.Editor for Java
  • GroupDocs.Editor for PHP
  • GroupDocs.Editor for Python
  • GroupDocs.Editor for Node.js
  • GroupDocs.Editor for Android
Start Free Trial

GroupDocs.Editor Cloud SDK for Ruby is easy to integrate with GroupDocs.Cloud REST API, thus allowing to quickly edit a wide range of document formats within Ruby applications without needing to install MS Office or other applications. Using the document editor library – easily perform all most demanded document editing operations while manipulating presentations, Excel spreadsheets, HTML, XML and Word processing documents. Just upload the document file to be edited via GroupDocs.Editor Cloud API into any front-end WYSIWYG editor, manipulate it and easily convert back to its original document type.

GroupDocs.Editor Cloud SDK for Ruby is built as a layer on top of GroupDocs.Editor Cloud REST API that saves valuable development time by managing low-level requests and handling responses. The developers can focus on writing up the specific code only as needed in the project.

Frequently Asked Questions

I want to create my own Ruby application to edit documents?

Check out GroupDocs.Editor Cloud SDK for Ruby at GitHub if you are looking for the source code to annotate file in the Cloud.

Can I try GroupDocs.Editor REST APIs on Ruby for free?

You can try GroupDocs.Editor Low-Code Ruby APIs without any limitations.

I do not want to upload my confidential files anywhere for editing? What are my options?

GroupDocs.Editor Cloud is also available as Docker image which can be used to self-host the service. Or you may build your own services using GroupDocs.Editor High-code APIs which currently drive our REST APIs.

Advanced Document Editor REST API Features

Integrates easily within any WYSIWYG editor

Edit Word documents as a whole or define pages range

Multi-tabbed spreadsheet editing is supported

Optimized memory usage for large CSV or TSV files

Extract document information (type, size, page count etc)

Cloud REST API to be used with any language or platform

Working with Presentations - Ruby

  //Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
  fileApi = GroupDocsEditorCloud::FileApi.from_keys($app_sid, $app_key)
  editApi = GroupDocsEditorCloud::EditApi.from_keys($app_sid, $app_key)
  
  # The document already uploaded into the storage.
  # Load it into editable state
  fileInfo = GroupDocsEditorCloud::FileInfo.new
  fileInfo.file_path = 'Presentation/with-notes.pptx'       
  
  loadOptions = GroupDocsEditorCloud::PresentationLoadOptions.new
  loadOptions.file_info = fileInfo
  loadOptions.output_path = "output"
  loadOptions.slide_number = 0
  
  loadRequest = GroupDocsEditorCloud::LoadRequest.new(loadOptions)        
  loadResult = editApi.load(loadRequest)
  
  # Download html document
  htmlFile = fileApi.download_file(GroupDocsEditorCloud::DownloadFileRequest.new loadResult.html_path)
  htmlFile.open
  html = htmlFile.read
  htmlFile.close
  
  # Edit something...
  html = html.gsub("Slide sub-heading", "Hello world!")
  
  # Upload html back to storage
  htmlFile = File.open(htmlFile.path, "w")        
  htmlFile.write(html)
  htmlFile.close
  uploadRequest = GroupDocsEditorCloud::UploadFileRequest.new loadResult.html_path, File.open(htmlFile.path, "r")
  fileApi.upload_file(uploadRequest)
  
  # Save html back to pptx
  saveOptions = GroupDocsEditorCloud::PresentationSaveOptions.new
  saveOptions.file_info = fileInfo
  saveOptions.output_path = "output/edited.pptx"
  saveOptions.html_path = loadResult.html_path
  saveOptions.resources_path = loadResult.resources_path
  
  saveRequest = GroupDocsEditorCloud::SaveRequest.new(saveOptions)
  saveResult = editApi.save(saveRequest)        
  
  puts("Document edited: " + saveResult.path)

Support and Learning Resources

GroupDocs.Editor offers document viewing APIs for other popular development environments

  English
4bde1f0