If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.

Kurulum
Paket rubygems.org adresinde mevcuttur ve aşağıdaki komut çalıştırılarak gem ile kurulabilir:
gem install groupdocs_merger_cloud

Gereksinimler
Bağımlılıklar
SDK aşağıdaki gem’leri gerektirir:
| Package | Constraint |
|---|
| addressable | ~> 2.8.0, >= 2.8.0 |
| faraday | ~> 0.14.0 |
Hızlı Başlangıç
API kimlik bilgilerinizi alın
GroupDocs.Merger Cloud kullanmak için GroupDocs.Cloud Dashboard adresinden kaydolun ve Client ID ile Client Secret değerlerinizi alın.
API’yi başlatın
GroupDocs.Merger Cloud SDK for Ruby kullanmaya başlamak için aşağıdaki kodu kullanın.
require 'groupdocs_merger_cloud'
# Get your ClientId and ClientSecret at https://dashboard.groupdocs.cloud
client_id = "YourClientId"
client_secret = "YourClientSecret"
config = GroupDocsMergerCloud::Configuration.new(client_id, client_secret)
config.api_base_url = "https://api.groupdocs.cloud"
documentApi = GroupDocsMergerCloud::DocumentApi.from_config(config)
Tam örneği RunExamples.rb içinde görün.
Birden çok belgeyi birleştirin
Başlatıldıktan sonra, iki Word belgesini tek bir dosyada birleştirmek için bu temel örneği kullanın.
require 'groupdocs_merger_cloud'
client_id = "YourClientId"
client_secret = "YourClientSecret"
config = GroupDocsMergerCloud::Configuration.new(client_id, client_secret)
config.api_base_url = "https://api.groupdocs.cloud"
documentApi = GroupDocsMergerCloud::DocumentApi.from_config(config)
item1 = GroupDocsMergerCloud::JoinItem.new
item1.file_info = GroupDocsMergerCloud::FileInfo.new
item1.file_info.file_path = 'WordProcessing/four-pages.docx'
item2 = GroupDocsMergerCloud::JoinItem.new
item2.file_info = GroupDocsMergerCloud::FileInfo.new
item2.file_info.file_path = 'WordProcessing/one-page.docx'
options = GroupDocsMergerCloud::JoinOptions.new
options.join_items = [item1, item2]
options.output_path = "Output/joined.docx"
result = documentApi.join(GroupDocsMergerCloud::JoinRequest.new(options))
puts("Output file path: " + result.path)
Tam örneği JoinMultipleDocuments.rb içinde görün.
Belgeyi tek sayfalara bölün
Bu örnek bir Word belgesinin seçilen sayfalarını ayrı dosyalara böler.
require 'groupdocs_merger_cloud'
client_id = "YourClientId"
client_secret = "YourClientSecret"
config = GroupDocsMergerCloud::Configuration.new(client_id, client_secret)
config.api_base_url = "https://api.groupdocs.cloud"
documentApi = GroupDocsMergerCloud::DocumentApi.from_config(config)
options = GroupDocsMergerCloud::SplitOptions.new
options.file_info = GroupDocsMergerCloud::FileInfo.new
options.file_info.file_path = 'WordProcessing/sample-10-pages.docx'
options.output_path = "Output/split-document"
options.pages = [1, 3]
options.mode = "Pages"
result = documentApi.split(GroupDocsMergerCloud::SplitRequest.new(options))
puts("Documents count: " + result.documents.size.to_s)
Tam örneği SplitToSinglePages.rb içinde görün.
Belge sayfalarını döndürün
Bu örnek bir PDF’nin 2 ve 4. sayfalarını 90 derece döndürür.
require 'groupdocs_merger_cloud'
client_id = "YourClientId"
client_secret = "YourClientSecret"
config = GroupDocsMergerCloud::Configuration.new(client_id, client_secret)
config.api_base_url = "https://api.groupdocs.cloud"
pagesApi = GroupDocsMergerCloud::PagesApi.from_config(config)
options = GroupDocsMergerCloud::RotateOptions.new
options.file_info = GroupDocsMergerCloud::FileInfo.new
options.file_info.file_path = 'Pdf/ten-pages.pdf'
options.output_path = "Output/rotate-pages.pdf"
options.pages = [2, 4]
options.mode = "Rotate90"
result = pagesApi.rotate(GroupDocsMergerCloud::RotateRequest.new(options))
puts("Output file path: " + result.path)
Tam örneği RotatePages.rb içinde görün.
Desteklenen birleştirme biçimlerini alın
API’nin birleştirip bölebileceği belge biçimlerini alın.
require 'groupdocs_merger_cloud'
client_id = "YourClientId"
client_secret = "YourClientSecret"
config = GroupDocsMergerCloud::Configuration.new(client_id, client_secret)
config.api_base_url = "https://api.groupdocs.cloud"
infoApi = GroupDocsMergerCloud::InfoApi.from_config(config)
result = infoApi.get_supported_file_formats()
result.formats.each do |format|
puts(format.file_format)
end
Tam örneği GetSupportedFileTypes.rb içinde görün.
GitHub’daki örnekler
GroupDocs.Merger Cloud Ruby Examples deposu şunları kapsayan çalıştırmaya hazır örnekler içerir:
| Category | Examples |
|---|
| Document Operations | Belgeleri birleştirme, görüntüleri birleştirme, biçimler arası birleştirme, bölme, sayfaları karıştırma, önizleme, ek içe aktarma |
| Pages Operations | Yönü değiştirme, çıkarma, taşıma, kaldırma, döndürme ve sayfaları değiştirme |
| Security Operations | Belge parolası ekleme, denetleme, kaldırma ve güncelleme |
| Info | Belge bilgileri, lisans tüketimi, desteklenen dosya türleri |
Örnekleri çalıştırma
- örnek deposunu klonlayın veya indirin
Examples/RunExamples.rb dosyasını düzenleyin ve client_id ile client_secret değerlerini ayarlayınExamples dizinine gidingem install groupdocs_merger_cloud komutunu çalıştırınruby RunExamples.rb komutunu çalıştırın
Ayrıntılar için Getting Started sayfasını ziyaret edin.

Document Merging API | Ruby Cloud API | GroupDocs.Merger Cloud | REST API | Page Manipulation | Document Security | Password Protection | Cloud Storage Integration | File Operations | Folder Operations | Document Splitting | PDF Merging | Cross-format Merging | Word Document Merging | Excel File Merging | Presentation Merging | Document Reorganization | Secure API Access | Document Joining | Document Manipulation API | Merge Multiple Formats | Cross-platform API