Low commit activity in last 3 years
A long-lived project that still receives updates
Ruby gem for communicating with the GroupDocs.Merger Cloud API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 5.11, >= 5.11.3

Runtime

~> 2.8.0, >= 2.8.0
~> 0.14.0
 Project Readme

GroupDocs.Merger Cloud Ruby SDK

GroupDocs.Merger Cloud API empowers developers to integrate advanced document merging and page manipulation functionalities into their Ruby applications. Supporting over 40 file formats, this REST API allows seamless merging, splitting, and reorganization of document pages, including PDFs, Word documents, Excel spreadsheets, and more. Security features include password protection for documents, while additional file and folder operations streamline cloud storage management. Whether working with cross-format documents or performing complex page manipulations, GroupDocs.Merger Cloud delivers robust tools for secure and efficient document handling across web, desktop, and mobile platforms.

Installation

A gem of groupdocs_merger_cloud is available at rubygems.org. You can install it with:

gem install groupdocs_merger_cloud

To add dependency to your app copy following into your Gemfile and run bundle install:

gem "groupdocs_merger_cloud", "~> 25.11"

Getting Started

This example demonstrates merging different Word files seamlessly with a few lines of code:

# For complete examples and data files, please go to https://github.com/groupdocs-merger-cloud/groupdocs-merger-cloud-ruby-samples
$app_sid = "XXXX-XXXX-XXXX-XXXX" # Get AppKey and AppSID from https://dashboard.groupdocs.cloud
$app_key = "XXXXXXXXXXXXXXXX" # Get AppKey and AppSID from https://dashboard.groupdocs.cloud
 
documentApi = GroupDocsMergerCloud::DocumentApi.from_keys($app_sid, $app_key)
 
item1 = GroupDocsMergerCloud::JoinItem.new
item1.file_info = GroupDocsMergerCloud::FileInfo.new
item1.file_info.file_path = 'WordProcessing/sample-10-pages.docx'
item1.pages = [3, 6, 8]
 
item2 = GroupDocsMergerCloud::JoinItem.new
item2.file_info = GroupDocsMergerCloud::FileInfo.new
item2.file_info.file_path = 'WordProcessing/four-pages.docx'       
item2.start_page_number = 1
item2.end_page_number = 4
item2.range_mode = "OddPages"
 
options = GroupDocsMergerCloud::JoinOptions.new
options.join_items = [item1, item2]
options.output_path = "Output/joined-pages.docx"
 
result = documentApi.join(GroupDocsMergerCloud::JoinRequest.new(options))

Licensing

GroupDocs.Merger Cloud Ruby SDK licensed under MIT License.

Resources

Contact Us

Your feedback is very important to us. Please feel free to contact us using our Support Forums.