Skip to content

Commit 5528626

Browse files
committed
Updated sources
1 parent 560cc2c commit 5528626

File tree

192 files changed

+288
-289
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+288
-289
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
groupdocs_conversion_cloud (20.11)
4+
groupdocs_conversion_cloud (21.4)
55
addressable (~> 2.5.0, >= 2.5.0)
66
faraday (~> 0.14.0)
77
mimemagic (~> 0.3.2)
@@ -13,7 +13,7 @@ GEM
1313
public_suffix (>= 2.0.2, < 4.0)
1414
faraday (0.14.0)
1515
multipart-post (>= 1.2, < 3)
16-
mimemagic (0.3.5)
16+
mimemagic (0.3.6)
1717
minitest (5.11.3)
1818
multipart-post (2.1.1)
1919
public_suffix (3.1.1)

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2003-2020 Aspose Pty Ltd
3+
Copyright (c) 2003-2019 Aspose Pty Ltd
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 31 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,53 @@
1-
![](https://img.shields.io/badge/api-v2.0-lightgrey) ![Gem](https://img.shields.io/gem/v/groupdocs_conversion_cloud) ![Gem](https://img.shields.io/gem/dt/groupdocs_conversion_cloud) [![GitHub license](https://img.shields.io/github/license/groupdocs-conversion-cloud/groupdocs-conversion-cloud-ruby)](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-ruby/blob/master/LICENSE)
1+
# GroupDocs.Conversion Cloud Ruby SDK
2+
Ruby gem for communicating with the GroupDocs.Conversion Cloud API
23

3-
# Ruby SDK to Convert Documents in the Cloud
4+
## Installation
45

5-
[GroupDocs.Conversion Cloud SDK for Ruby](https://products.groupdocs.cloud/conversion/ruby) wraps GroupDocs.Conversion RESTful APIs so you may integrate **Document Conversion** features in your own apps with zero initial cost.
6-
7-
GroupDocs.Conversion Cloud API allows the developers to convert between 50+ file formats including Word documents, Excel spreadsheets, PowerPoint presentations, PDF, OpenDocument files, images & more.
8-
9-
## Document Conversion REST API
10-
11-
- Convert the whole document to the desired target format.
12-
- Convert specific document page(s) or a page range.
13-
- Auto-detect source document format without requiring the file extension.
14-
- Load source document with extended options, such as specify password for password-protected documents.
15-
- Load specific part of the document.
16-
- Show or hide document comments.
17-
- Obtain all supported conversion formats list.
18-
- Replace missing fonts with any other font.
19-
- Add text or image watermarks to any page.
20-
- Specify resolution and quality for resultant images.
21-
- Extract metadata & basic information about the source document.
22-
- Integrated storage API.
23-
24-
Check out the [Developer's Guide](https://docs.groupdocs.cloud/conversion/developer-guide/) to know more about GroupDocs.Conversion REST API.
25-
26-
## Microsoft File Formats
27-
28-
**Microsoft Word:** DOC, DOCM, DOCX, DOT, DOTM, DOTX\
29-
**Microsoft Excel:** XLS, XLSX, XLSB, XLSM\
30-
**Microsoft PowerPoint:** PPT, PPTX, PPS, PPSX\
31-
**Microsoft Project:** MPP, MPT\
32-
**Microsoft Outlook:** MSG, EML\
33-
**Microsoft Visio:** VSD, VDX, VSS, VSX, VST, VTX, VSDX, VDW, VSSX, VSTX, VSDM, VSTM, VSSM\
34-
**Microsoft OneNote:** ONE
35-
36-
## Other Formats
37-
38-
**Page Layout Formats:** PDF, XPS\
39-
**OpenDocument:** ODT, OTT, ODS, ODP, OTP, OTS, ODG\
40-
**CAD:** DXF, DWG, IFC, STL\
41-
**Images:** DCM, BMP, GIF, JPG, PNG, TIFF, WebP, DjVu, SVG, DNG, ICO\
42-
**Web:** HTML, MHT, MHTML\
43-
**Emails:** EML, EMLX\
44-
**eBooks:** EPUB, MOBI\
45-
**Metafile:** WMF, EMF\
46-
**LaTeX:** TEX\
47-
**Others:** TXT, RTF, CSV, TSV, XML
48-
49-
## Get Started with GroupDocs.Conversion Cloud SDK for Ruby
50-
51-
First create an account at [GroupDocs for Cloud](https://dashboard.groupdocs.cloud/) and get your application information. Next, execute the following command to get the package.
6+
A gem of groupdocs_conversion_cloud is available at [rubygems.org](https://rubygems.org). You can install it with:
527

538
```shell
549
gem install groupdocs_conversion_cloud
5510
```
5611

57-
Copy the following into your Gemfile and run `bundle install` to add dependency to your app.
12+
To add dependency to your app copy following into your Gemfile and run `bundle install`:
5813

5914
```
60-
gem "groupdocs_conversion_cloud", "~> 20.11"
15+
gem "groupdocs_conversion_cloud", "~> 21.4"
6116
```
6217

63-
## Convert DOCX to PDF in the Cloud
18+
## Getting Started
6419

20+
Please follow the [installation](#installation) procedure and then run the following code:
6521
```ruby
66-
# Get your application information from https://dashboard.groupdocs.cloud
22+
# Load the gem
6723
require 'groupdocs_conversion_cloud'
6824

69-
# Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
70-
$my_client_id = ""
71-
$my_client_secret = ""
25+
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required).
26+
app_sid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
27+
app_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
7228

73-
# Create instance of the API
74-
$configuration = GroupDocsConversionCloud::Configuration.new($my_client_id, $my_client_secret)
75-
apiInstance = GroupDocsConversionCloud::ConvertApi.from_config($configuration)
29+
# Create instance of the API class
30+
api = GroupDocsConversionCloud::InfoApi.from_keys(app_sid, app_key)
7631

77-
# Prepare convert settings
78-
settings = GroupDocsConversionCloud::ConvertSettings.new
79-
settings.file_path = "WordProcessing/four-pages.docx"
80-
settings.format = "pdf"
81-
settings.output_path = "converted"
32+
# Retrieve supported converison types
33+
request = GroupDocsConversionCloud::GetSupportedConversionTypesRequest.new
34+
response = api.get_supported_conversion_types(request)
8235

83-
# Convert
84-
result = apiInstance.convert_document(GroupDocsConversionCloud::ConvertDocumentRequest.new(settings))
36+
# Print out supported conversion types
37+
puts("Supported file-formats:")
38+
response.each do |format|
39+
puts("#{format.source_format} to [#{format.target_formats.join(', ')}]")
8540
```
8641

87-
## GroupDocs.Conversion Cloud SDKs in Popular Languages
42+
## Licensing
43+
GroupDocs.Conversion Cloud Ruby SDK licensed under [MIT License](LICENSE).
8844

89-
| .NET | Java | PHP | Python | Ruby | Node.js | Android |
90-
|---|---|---|---|---|---|---|
91-
| [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-dotnet) | [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java) | [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-php) | [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-python) | [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-ruby) | [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-node) | [GitHub](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-android) |
92-
| [NuGet](https://www.nuget.org/packages/GroupDocs.Conversion-Cloud/) | [Maven](https://repository.groupdocs.cloud/webapp/#/artifacts/browse/tree/General/repo/com/groupdocs/groupdocs-conversion-cloud) | [Composer](https://packagist.org/packages/groupdocscloud/groupdocs-conversion-cloud) | [PIP](https://pypi.org/project/groupdocs-conversion-cloud/) | [GEM](https://rubygems.org/gems/groupdocs_conversion_cloud) | [NPM](https://www.npmjs.com/package/groupdocs-conversion-cloud) | |
45+
## Resources
46+
+ [**Website**](https://www.groupdocs.cloud)
47+
+ [**Product Home**](https://products.groupdocs.cloud/conversion)
48+
+ [**Documentation**](https://docs.groupdocs.cloud/display/conversioncloud/Home)
49+
+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/conversion)
50+
+ [**Blog**](https://blog.groupdocs.cloud/category/conversion)
9351

94-
[Home](https://www.groupdocs.cloud/) | [Product Page](https://products.groupdocs.cloud/conversion/ruby) | [Documentation](https://docs.groupdocs.cloud/conversion/) | [Live Demo](https://products.groupdocs.app/conversion/total) | [API Reference](https://apireference.groupdocs.cloud/conversion/) | [Code Samples](https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-ruby-samples) | [Blog](https://blog.groupdocs.cloud/category/conversion/) | [Free Support](https://forum.groupdocs.cloud/c/conversion) | [Free Trial](https://dashboard.groupdocs.cloud)
52+
## Contact Us
53+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/conversion).

lib/groupdocs_conversion_cloud.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ------------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="groupdocs_conversion_cloud.rb">
3-
# Copyright (c) 2003-2020 Aspose Pty Ltd
3+
# Copyright (c) 2003-2021 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_conversion_cloud/api/convert_api.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="convert.rb">
3-
# Copyright (c) 2003-2020 Aspose Pty Ltd
3+
# Copyright (c) 2003-2021 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -241,7 +241,7 @@ def convert_document_direct_with_http_info(request)
241241
#
242242
# --------------------------------------------------------------------------------------------------------------------
243243
# <copyright company="Aspose Pty Ltd" file="convert_document_request.rb">
244-
# Copyright (c) 2003-2020 Aspose Pty Ltd
244+
# Copyright (c) 2003-2021 Aspose Pty Ltd
245245
# </copyright>
246246
# <summary>
247247
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -286,7 +286,7 @@ def initialize(convert_settings)
286286
#
287287
# --------------------------------------------------------------------------------------------------------------------
288288
# <copyright company="Aspose Pty Ltd" file="convert_document_direct_request.rb">
289-
# Copyright (c) 2003-2020 Aspose Pty Ltd
289+
# Copyright (c) 2003-2021 Aspose Pty Ltd
290290
# </copyright>
291291
# <summary>
292292
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_conversion_cloud/api/file_api.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="file.rb">
3-
# Copyright (c) 2003-2020 Aspose Pty Ltd
3+
# Copyright (c) 2003-2021 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -449,7 +449,7 @@ def upload_file_with_http_info(request)
449449
#
450450
# --------------------------------------------------------------------------------------------------------------------
451451
# <copyright company="Aspose Pty Ltd" file="copy_file_request.rb">
452-
# Copyright (c) 2003-2020 Aspose Pty Ltd
452+
# Copyright (c) 2003-2021 Aspose Pty Ltd
453453
# </copyright>
454454
# <summary>
455455
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -510,7 +510,7 @@ def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name =
510510
#
511511
# --------------------------------------------------------------------------------------------------------------------
512512
# <copyright company="Aspose Pty Ltd" file="delete_file_request.rb">
513-
# Copyright (c) 2003-2020 Aspose Pty Ltd
513+
# Copyright (c) 2003-2021 Aspose Pty Ltd
514514
# </copyright>
515515
# <summary>
516516
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -563,7 +563,7 @@ def initialize(path, storage_name = nil, version_id = nil)
563563
#
564564
# --------------------------------------------------------------------------------------------------------------------
565565
# <copyright company="Aspose Pty Ltd" file="download_file_request.rb">
566-
# Copyright (c) 2003-2020 Aspose Pty Ltd
566+
# Copyright (c) 2003-2021 Aspose Pty Ltd
567567
# </copyright>
568568
# <summary>
569569
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -616,7 +616,7 @@ def initialize(path, storage_name = nil, version_id = nil)
616616
#
617617
# --------------------------------------------------------------------------------------------------------------------
618618
# <copyright company="Aspose Pty Ltd" file="move_file_request.rb">
619-
# Copyright (c) 2003-2020 Aspose Pty Ltd
619+
# Copyright (c) 2003-2021 Aspose Pty Ltd
620620
# </copyright>
621621
# <summary>
622622
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -677,7 +677,7 @@ def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name =
677677
#
678678
# --------------------------------------------------------------------------------------------------------------------
679679
# <copyright company="Aspose Pty Ltd" file="upload_file_request.rb">
680-
# Copyright (c) 2003-2020 Aspose Pty Ltd
680+
# Copyright (c) 2003-2021 Aspose Pty Ltd
681681
# </copyright>
682682
# <summary>
683683
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_conversion_cloud/api/folder_api.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="folder.rb">
3-
# Copyright (c) 2003-2020 Aspose Pty Ltd
3+
# Copyright (c) 2003-2021 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -430,7 +430,7 @@ def move_folder_with_http_info(request)
430430
#
431431
# --------------------------------------------------------------------------------------------------------------------
432432
# <copyright company="Aspose Pty Ltd" file="copy_folder_request.rb">
433-
# Copyright (c) 2003-2020 Aspose Pty Ltd
433+
# Copyright (c) 2003-2021 Aspose Pty Ltd
434434
# </copyright>
435435
# <summary>
436436
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -487,7 +487,7 @@ def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name =
487487
#
488488
# --------------------------------------------------------------------------------------------------------------------
489489
# <copyright company="Aspose Pty Ltd" file="create_folder_request.rb">
490-
# Copyright (c) 2003-2020 Aspose Pty Ltd
490+
# Copyright (c) 2003-2021 Aspose Pty Ltd
491491
# </copyright>
492492
# <summary>
493493
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -536,7 +536,7 @@ def initialize(path, storage_name = nil)
536536
#
537537
# --------------------------------------------------------------------------------------------------------------------
538538
# <copyright company="Aspose Pty Ltd" file="delete_folder_request.rb">
539-
# Copyright (c) 2003-2020 Aspose Pty Ltd
539+
# Copyright (c) 2003-2021 Aspose Pty Ltd
540540
# </copyright>
541541
# <summary>
542542
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -589,7 +589,7 @@ def initialize(path, storage_name = nil, recursive = nil)
589589
#
590590
# --------------------------------------------------------------------------------------------------------------------
591591
# <copyright company="Aspose Pty Ltd" file="get_files_list_request.rb">
592-
# Copyright (c) 2003-2020 Aspose Pty Ltd
592+
# Copyright (c) 2003-2021 Aspose Pty Ltd
593593
# </copyright>
594594
# <summary>
595595
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -638,7 +638,7 @@ def initialize(path, storage_name = nil)
638638
#
639639
# --------------------------------------------------------------------------------------------------------------------
640640
# <copyright company="Aspose Pty Ltd" file="move_folder_request.rb">
641-
# Copyright (c) 2003-2020 Aspose Pty Ltd
641+
# Copyright (c) 2003-2021 Aspose Pty Ltd
642642
# </copyright>
643643
# <summary>
644644
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_conversion_cloud/api/info_api.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="info.rb">
3-
# Copyright (c) 2003-2020 Aspose Pty Ltd
3+
# Copyright (c) 2003-2021 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -246,7 +246,7 @@ def get_supported_conversion_types_with_http_info(request)
246246
#
247247
# --------------------------------------------------------------------------------------------------------------------
248248
# <copyright company="Aspose Pty Ltd" file="get_document_metadata_request.rb">
249-
# Copyright (c) 2003-2020 Aspose Pty Ltd
249+
# Copyright (c) 2003-2021 Aspose Pty Ltd
250250
# </copyright>
251251
# <summary>
252252
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -295,7 +295,7 @@ def initialize(file_path = nil, storage_name = nil)
295295
#
296296
# --------------------------------------------------------------------------------------------------------------------
297297
# <copyright company="Aspose Pty Ltd" file="get_supported_conversion_types_request.rb">
298-
# Copyright (c) 2003-2020 Aspose Pty Ltd
298+
# Copyright (c) 2003-2021 Aspose Pty Ltd
299299
# </copyright>
300300
# <summary>
301301
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_conversion_cloud/api/storage_api.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="storage.rb">
3-
# Copyright (c) 2003-2020 Aspose Pty Ltd
3+
# Copyright (c) 2003-2021 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -350,7 +350,7 @@ def storage_exists_with_http_info(request)
350350
#
351351
# --------------------------------------------------------------------------------------------------------------------
352352
# <copyright company="Aspose Pty Ltd" file="get_disc_usage_request.rb">
353-
# Copyright (c) 2003-2020 Aspose Pty Ltd
353+
# Copyright (c) 2003-2021 Aspose Pty Ltd
354354
# </copyright>
355355
# <summary>
356356
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -395,7 +395,7 @@ def initialize(storage_name = nil)
395395
#
396396
# --------------------------------------------------------------------------------------------------------------------
397397
# <copyright company="Aspose Pty Ltd" file="get_file_versions_request.rb">
398-
# Copyright (c) 2003-2020 Aspose Pty Ltd
398+
# Copyright (c) 2003-2021 Aspose Pty Ltd
399399
# </copyright>
400400
# <summary>
401401
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -444,7 +444,7 @@ def initialize(path, storage_name = nil)
444444
#
445445
# --------------------------------------------------------------------------------------------------------------------
446446
# <copyright company="Aspose Pty Ltd" file="object_exists_request.rb">
447-
# Copyright (c) 2003-2020 Aspose Pty Ltd
447+
# Copyright (c) 2003-2021 Aspose Pty Ltd
448448
# </copyright>
449449
# <summary>
450450
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -497,7 +497,7 @@ def initialize(path, storage_name = nil, version_id = nil)
497497
#
498498
# --------------------------------------------------------------------------------------------------------------------
499499
# <copyright company="Aspose Pty Ltd" file="storage_exists_request.rb">
500-
# Copyright (c) 2003-2020 Aspose Pty Ltd
500+
# Copyright (c) 2003-2021 Aspose Pty Ltd
501501
# </copyright>
502502
# <summary>
503503
# Permission is hereby granted, free of charge, to any person obtaining a copy

lib/groupdocs_conversion_cloud/api_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -----------------------------------------------------------------------------------
22
# <copyright company="Aspose Pty Ltd" file="api_client.rb">
3-
# Copyright (c) 2003-2020 Aspose Pty Ltd
3+
# Copyright (c) 2003-2021 Aspose Pty Ltd
44
# </copyright>
55
# <summary>
66
# Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)