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.Start Free Trial
GroupDocs.Editor Cloud SDK for Ruby
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.
If you do not want to use any of our SDKs or the required SDK is not available at the moment, you can still easily get started with GroupDocs.Editor REST API while using your favorite language & platform.
GroupDocs.Editor Cloud SDK for Ruby has the following requirements:
API Supported Document Formats
GroupDocs.Editor Cloud supports a number of document formats.
- Word: DOC, DOCX, DOCM, DOT, DOTX, DOTM, FlatOPC, ODT, OTT, RTF, WordML
- Excel: XLS, XLSX, XLT, XLSM, XLSB, XLTX, XLTM, XLAM, SXC, SpreadsheetML, ODS, FODS, DIF, DSV, CSV, TSV
- PowerPoint: PPT, PPTX, PPS, PPSX, PPSM, PPTM, POT, POTX, POTM, ODP, OTP
- Plain Text TXT
- Markup: HTML, XML
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)
GroupDocs.Editor Cloud also offers individual document rendering SDKs for other languages as listed below: