asposecloud 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.project +18 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +21 -0
  6. data/README.md +71 -0
  7. data/Rakefile +1 -0
  8. data/Samples/Barcode/Test_Builder.rb +35 -0
  9. data/Samples/Barcode/Test_Reader.rb +34 -0
  10. data/Samples/Cells/Test_Converter.rb +34 -0
  11. data/Samples/Email/Test_Converter.rb +31 -0
  12. data/Samples/Email/Test_Document.rb +31 -0
  13. data/Samples/Pdf/Test_Converter.rb +38 -0
  14. data/Samples/Pdf/Test_TextEditor.rb +33 -0
  15. data/Samples/Slides/Test_Converter.rb +35 -0
  16. data/Samples/Storage/Test_Folder.rb +42 -0
  17. data/Samples/Words/Test_Converter.rb +34 -0
  18. data/Samples/tasks/Test_Converter.rb +31 -0
  19. data/Samples/tasks/Test_Document.rb +33 -0
  20. data/Tests/Data/barcodeQR.png +0 -0
  21. data/Tests/Data/email_test.eml +21 -0
  22. data/Tests/Data/email_test_attach.eml +64 -0
  23. data/Tests/Data/test_convert_cell.xlsx +0 -0
  24. data/Tests/Data/test_convert_slide.pptx +0 -0
  25. data/Tests/Data/test_convertlocal.docx +0 -0
  26. data/Tests/Data/test_convertlocal.pdf +0 -0
  27. data/Tests/Data/test_file_on_storage.pdf +0 -0
  28. data/Tests/Data/test_replace_text.pdf +0 -0
  29. data/Tests/Data/test_tasks.mpp +0 -0
  30. data/Tests/Data/test_uploadfile.docx +0 -0
  31. data/Tests/Output/barcodeQR.png +0 -0
  32. data/Tests/Output/converted_file.doc +0 -0
  33. data/Tests/Output/converted_file.pdf +0 -0
  34. data/Tests/Output/converted_file.tiff +0 -0
  35. data/Tests/Output/email_test.msg +0 -0
  36. data/Tests/Output/test_convert_slide.png +0 -0
  37. data/Tests/Output/test_file_on_storage.doc +0 -0
  38. data/Tests/Output/testfile.jpeg +0 -0
  39. data/Tests/barcode_tests.rb +45 -0
  40. data/Tests/cell_tests.rb +41 -0
  41. data/Tests/email_tests.rb +43 -0
  42. data/Tests/pdf_tests.rb +76 -0
  43. data/Tests/slide_tests.rb +41 -0
  44. data/Tests/storage_tests.rb +86 -0
  45. data/Tests/tasks_tests.rb +24 -0
  46. data/Tests/word_tests.rb +34 -0
  47. data/asposecloud.gemspec +24 -0
  48. data/lib/Barcode/builder.rb +45 -0
  49. data/lib/Barcode/reader.rb +65 -0
  50. data/lib/Cells/chart_editor.rb +91 -0
  51. data/lib/Cells/convertor.rb +144 -0
  52. data/lib/Cells/extractor.rb +86 -0
  53. data/lib/Cells/text_editor.rb +94 -0
  54. data/lib/Cells/workbook.rb +224 -0
  55. data/lib/Cells/worksheet.rb +375 -0
  56. data/lib/Common/aspose_app.rb +51 -0
  57. data/lib/Common/product.rb +34 -0
  58. data/lib/Common/utils.rb +172 -0
  59. data/lib/Email/converter.rb +50 -0
  60. data/lib/Email/document.rb +67 -0
  61. data/lib/Ocr/extractor.rb +105 -0
  62. data/lib/Pdf/annotation_editor.rb +263 -0
  63. data/lib/Pdf/converter.rb +127 -0
  64. data/lib/Pdf/document.rb +220 -0
  65. data/lib/Pdf/extractor.rb +107 -0
  66. data/lib/Pdf/text_editor.rb +121 -0
  67. data/lib/Slides/converter.rb +79 -0
  68. data/lib/Slides/document.rb +208 -0
  69. data/lib/Slides/extractor.rb +135 -0
  70. data/lib/Storage/folder.rb +128 -0
  71. data/lib/Words/builder.rb +82 -0
  72. data/lib/Words/converter.rb +67 -0
  73. data/lib/Words/document.rb +117 -0
  74. data/lib/Words/extractor.rb +153 -0
  75. data/lib/Words/mail_merge.rb +65 -0
  76. data/lib/aspose_barcode.rb +21 -0
  77. data/lib/aspose_cells.rb +24 -0
  78. data/lib/aspose_common.rb +29 -0
  79. data/lib/aspose_email.rb +20 -0
  80. data/lib/aspose_ocr.rb +21 -0
  81. data/lib/aspose_pdf.rb +23 -0
  82. data/lib/aspose_slides.rb +21 -0
  83. data/lib/aspose_storage.rb +19 -0
  84. data/lib/aspose_tasks.rb +23 -0
  85. data/lib/aspose_words.rb +23 -0
  86. data/lib/asposecloud.rb +29 -0
  87. data/lib/asposecloud/version.rb +3 -0
  88. data/lib/tasks/assignments.rb +71 -0
  89. data/lib/tasks/calendar.rb +56 -0
  90. data/lib/tasks/converter.rb +48 -0
  91. data/lib/tasks/document.rb +143 -0
  92. data/lib/tasks/resources.rb +69 -0
  93. metadata +187 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f9c133e2c8da16e74c0aef9b3673f3958c2b77d0
4
+ data.tar.gz: 68cc23993b6dff4676fb7a489ae95c11e49c16e7
5
+ SHA512:
6
+ metadata.gz: 6b91f328999823bd2448bd456a94291fca077bd646c4a9088534bd364661a77b5de8660f623f3ecfd3ad701f924fb1dbb18c283ca1b4842407f869949908fb60
7
+ data.tar.gz: 0b01b13b67c45987ca4c2c73931d94a70736081ab9d39c4366e1cb704ac3d96db343a5035ef96f71e7e73044e3a0e56af17c8c0bfd28552c4b21c97ea9803233
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.project ADDED
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projectDescription>
3
+ <name>Aspose Cloud SDK For Ruby</name>
4
+ <comment></comment>
5
+ <projects>
6
+ </projects>
7
+ <buildSpec>
8
+ <buildCommand>
9
+ <name>com.aptana.ide.core.unifiedBuilder</name>
10
+ <arguments>
11
+ </arguments>
12
+ </buildCommand>
13
+ </buildSpec>
14
+ <natures>
15
+ <nature>com.aptana.ruby.core.rubynature</nature>
16
+ <nature>com.aptana.projects.webnature</nature>
17
+ </natures>
18
+ </projectDescription>
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in asposecloudsdk.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2001-2014 Aspose Pty Ltd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,71 @@
1
+ #Aspose Cloud SDK for Ruby Repository
2
+
3
+ This repository contains Aspose Cloud SDK for Ruby source code. This SDK allows you to work with Aspose REST API in your Ruby applications quickly and easily.
4
+
5
+
6
+ ##What's included in this SDK repository?
7
+
8
+ ###Code
9
+
10
+ <table>
11
+ <tr>
12
+ <th>Module</th>
13
+ <th>Description</th>
14
+ </tr>
15
+
16
+ <tr>
17
+ <td>Common</td>
18
+ <td>This module provides the features commonly used by other sections of the SDK.</td>
19
+ </tr>
20
+
21
+ <tr>
22
+ <td>Storage</td>
23
+ <td>This module provides the features to work with Aspose storage.</td>
24
+ </tr>
25
+
26
+ <tr>
27
+ <td>Pdf</td>
28
+ <td>This module provides the features to manipulate PDF files using Aspose.Cloud.Pdf.</td>
29
+ </tr>
30
+
31
+ <tr>
32
+ <td>Words</td>
33
+ <td>This module provides the features to manipulate Word files using Aspose.Cloud.Words.</td>
34
+ </tr>
35
+
36
+ <tr>
37
+ <td>Cells</td>
38
+ <td>This module provides the features to manipulate Excel files using Aspose.Cloud.Cells.</td>
39
+ </tr>
40
+
41
+ <tr>
42
+ <td>Slides</td>
43
+ <td>This module provides the features to manipulate Powerpoint files using Aspose.Cloud.Slides.</td>
44
+ </tr>
45
+
46
+ <tr>
47
+ <td>BarCode</td>
48
+ <td>This module provides the features to manipulate bar codes using Aspose.Cloud.BarCode.</td>
49
+ </tr>
50
+
51
+
52
+ </table>
53
+
54
+
55
+
56
+ ###Data
57
+
58
+ In order to manipulate any files, you first need to upload them to the Aspose storage using Storage module.
59
+
60
+ ###Output
61
+
62
+ The Aspose Cloud SDK for Ruby allows you to save the output files at your specified location.
63
+
64
+
65
+ ###Help Material
66
+
67
+ You may get help regarding Aspose API or Aspose Cloud SDK for Ruby on [www.Aspose.com](http://www.Aspose.com).
68
+
69
+ ##How to use Aspose Cloud SDK for Ruby?
70
+
71
+ Aspose for Cloud products: http://www.aspose.com/cloud/total-api.aspx
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,35 @@
1
+ # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
+ #
3
+ # LICENSE: This program is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU General Public License
5
+ # as published by the Free Software Foundation; either version 3
6
+ # of the License, or (at your option) any later version.
7
+ # This program is distributed in the hope that it will be useful,
8
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ # GNU General Public License for more details.
11
+ # You should have received a copy of the GNU General Public License
12
+ # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
+ #
14
+ # @package Aspose_Cloud_SDK_For_Ruby
15
+ # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
+ # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
+
18
+ # Require asposecloudsdk
19
+ require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposecloud'
20
+
21
+ app_sid = '****'
22
+ app_key = '****'
23
+
24
+ Aspose::Cloud::Common::AsposeApp.app_key = app_key
25
+ Aspose::Cloud::Common::AsposeApp.app_sid = app_sid
26
+ Aspose::Cloud::Common::AsposeApp.output_location = 'path/to/output/location/'
27
+ Aspose::Cloud::Common::Product.set_base_product_uri('http://api.aspose.com/v1.1')
28
+
29
+ # Create object of builder class
30
+ barcode = Aspose::Cloud::Barcode::Builder.new
31
+
32
+ # Save method will generate the barcode of given text and output will be saved
33
+ # as barcodeQR.png at path/to/output/location/
34
+ barcode.save('Text to generate barcode','QR','png')
35
+
@@ -0,0 +1,34 @@
1
+ # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
+ #
3
+ # LICENSE: This program is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU General Public License
5
+ # as published by the Free Software Foundation; either version 3
6
+ # of the License, or (at your option) any later version.
7
+ # This program is distributed in the hope that it will be useful,
8
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ # GNU General Public License for more details.
11
+ # You should have received a copy of the GNU General Public License
12
+ # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
+ #
14
+ # @package Aspose_Cloud_SDK_For_Ruby
15
+ # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
+ # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
+
18
+ # Require asposecloudsdk
19
+ require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposecloud'
20
+
21
+ app_sid = '****'
22
+ app_key = '****'
23
+
24
+ Aspose::Cloud::Common::AsposeApp.app_key = app_key
25
+ Aspose::Cloud::Common::AsposeApp.app_sid = app_sid
26
+ Aspose::Cloud::Common::AsposeApp.output_location = 'path/to/output/location/'
27
+ Aspose::Cloud::Common::Product.set_base_product_uri('http://api.aspose.com/v1.1')
28
+
29
+ # Create object of barcode reader class
30
+ reader = Aspose::Cloud::Barcode::Reader.new('storage_file_name.ext')
31
+
32
+ # Read a barcode image from local disc
33
+ reader.read_from_local_image('path/to/local/barcode/image/file')
34
+
@@ -0,0 +1,34 @@
1
+ # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
+ #
3
+ # LICENSE: This program is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU General Public License
5
+ # as published by the Free Software Foundation; either version 3
6
+ # of the License, or (at your option) any later version.
7
+ # This program is distributed in the hope that it will be useful,
8
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ # GNU General Public License for more details.
11
+ # You should have received a copy of the GNU General Public License
12
+ # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
+ #
14
+ # @package Aspose_Cloud_SDK_For_Ruby
15
+ # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
+ # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
+
18
+ # Require asposecloudsdk
19
+ require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposecloud'
20
+
21
+ app_sid = '****'
22
+ app_key = '****'
23
+
24
+ Aspose::Cloud::Common::AsposeApp.app_key = app_key
25
+ Aspose::Cloud::Common::AsposeApp.app_sid = app_sid
26
+ Aspose::Cloud::Common::AsposeApp.output_location = 'path/to/output/location/'
27
+ Aspose::Cloud::Common::Product.set_base_product_uri('http://api.aspose.com/v1.1')
28
+
29
+ # Create object of cells converter class
30
+ cells_converter = Aspose::Cloud::Cells::Converter.new('testing.xls')
31
+
32
+ # Convert an excel file on storage to any of supported output formats
33
+ # output file will be stored on local drive at output_location
34
+ cells_converter.convert('output_filename','output_extension')
@@ -0,0 +1,31 @@
1
+ # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
+ #
3
+ # LICENSE: This program is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU General Public License
5
+ # as published by the Free Software Foundation; either version 3
6
+ # of the License, or (at your option) any later version.
7
+ # This program is distributed in the hope that it will be useful,
8
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ # GNU General Public License for more details.
11
+ # You should have received a copy of the GNU General Public License
12
+ # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
+ #
14
+ # @package Aspose_Cloud_SDK_For_Ruby
15
+ # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
+ # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
+
18
+ # Require asposecloudsdk
19
+ require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposecloud'
20
+
21
+ app_sid = '****'
22
+ app_key = '****'
23
+
24
+ Aspose::Cloud::Common::AsposeApp.app_key = app_key
25
+ Aspose::Cloud::Common::AsposeApp.app_sid = app_sid
26
+ Aspose::Cloud::Common::AsposeApp.output_location = ''
27
+ Aspose::Cloud::Common::Product.set_base_product_uri('http://api.aspose.com/v1.1')
28
+
29
+ # Create object of converter
30
+ con_obj = Aspose::Cloud::Email::Converter.new('path/to/storage/file.eml')
31
+ con_obj.convert('msg')
@@ -0,0 +1,31 @@
1
+ # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
+ #
3
+ # LICENSE: This program is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU General Public License
5
+ # as published by the Free Software Foundation; either version 3
6
+ # of the License, or (at your option) any later version.
7
+ # This program is distributed in the hope that it will be useful,
8
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ # GNU General Public License for more details.
11
+ # You should have received a copy of the GNU General Public License
12
+ # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
+ #
14
+ # @package Aspose_Cloud_SDK_For_Ruby
15
+ # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
+ # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
+
18
+ # Require asposecloudsdk
19
+ require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposecloud'
20
+
21
+ app_sid = '****'
22
+ app_key = '****'
23
+
24
+ Aspose::Cloud::Common::AsposeApp.app_key = app_key
25
+ Aspose::Cloud::Common::AsposeApp.app_sid = app_sid
26
+ Aspose::Cloud::Common::AsposeApp.output_location = ''
27
+ Aspose::Cloud::Common::Product.set_base_product_uri('http://api.aspose.com/v1.1')
28
+
29
+ # Create object of email document
30
+ obj = Aspose::Cloud::Email::Document.new('path/to/storage/file.eml')
31
+ puts obj.get_property('From')
@@ -0,0 +1,38 @@
1
+ # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
+ #
3
+ # LICENSE: This program is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU General Public License
5
+ # as published by the Free Software Foundation; either version 3
6
+ # of the License, or (at your option) any later version.
7
+ # This program is distributed in the hope that it will be useful,
8
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ # GNU General Public License for more details.
11
+ # You should have received a copy of the GNU General Public License
12
+ # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
+ #
14
+ # @package Aspose_Cloud_SDK_For_Ruby
15
+ # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
+ # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
+
18
+ # Require asposecloudsdk
19
+ require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposecloud'
20
+
21
+ app_sid = '****'
22
+ app_key = '****'
23
+
24
+ Aspose::Cloud::Common::AsposeApp.app_key = app_key
25
+ Aspose::Cloud::Common::AsposeApp.app_sid = app_sid
26
+ Aspose::Cloud::Common::AsposeApp.output_location = 'path/to/output/location'
27
+ Aspose::Cloud::Common::Product.set_base_product_uri('http://api.aspose.com/v1.1')
28
+
29
+ # Create object of pdf converter class
30
+ pdf_converter = Aspose::Cloud::Pdf::Converter.new('path/to/pdf/file/on/storage.pdf')
31
+
32
+ # Convert a local pdf file to any format (tiff,doc, etc) and store the output
33
+ # file locally
34
+ pdf_converter.convert_local_file("path/to/input/file.pdf",'output_filename_without_extension','output_file_extension')
35
+
36
+ # Convert a pdf file on storage to any format (tiff,doc, etc) and store the output
37
+ # file on storage. class variable @filename will be used to convert the file
38
+ pdf_converter.convert('doc')
@@ -0,0 +1,33 @@
1
+ # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
+ #
3
+ # LICENSE: This program is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU General Public License
5
+ # as published by the Free Software Foundation; either version 3
6
+ # of the License, or (at your option) any later version.
7
+ # This program is distributed in the hope that it will be useful,
8
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ # GNU General Public License for more details.
11
+ # You should have received a copy of the GNU General Public License
12
+ # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
+ #
14
+ # @package Aspose_Cloud_SDK_For_Ruby
15
+ # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
+ # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
+
18
+ # Require asposecloudsdk
19
+ require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposecloud'
20
+
21
+ app_sid = '****'
22
+ app_key = '****'
23
+
24
+ Aspose::Cloud::Common::AsposeApp.app_key = app_key
25
+ Aspose::Cloud::Common::AsposeApp.app_sid = app_sid
26
+ Aspose::Cloud::Common::AsposeApp.output_location = 'path/to/output/location/'
27
+ Aspose::Cloud::Common::Product.set_base_product_uri('http://api.aspose.com/v1.1')
28
+
29
+ # Create object of pdf text editor class
30
+ pdf_editor = Aspose::Cloud::Pdf::TextEditor.new('filename/at/storage')
31
+
32
+ # Search and replace the text in @filename on storage.
33
+ pdf_editor.replace_text('Find Text','Replace With',false,1)
@@ -0,0 +1,35 @@
1
+ # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
+ #
3
+ # LICENSE: This program is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU General Public License
5
+ # as published by the Free Software Foundation; either version 3
6
+ # of the License, or (at your option) any later version.
7
+ # This program is distributed in the hope that it will be useful,
8
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ # GNU General Public License for more details.
11
+ # You should have received a copy of the GNU General Public License
12
+ # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
+ #
14
+ # @package Aspose_Cloud_SDK_For_Ruby
15
+ # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
+ # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
+
18
+ # Require asposecloudsdk
19
+ require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposecloud'
20
+
21
+ app_sid = '****'
22
+ app_key = '****'
23
+
24
+ Aspose::Cloud::Common::AsposeApp.app_key = app_key
25
+ Aspose::Cloud::Common::AsposeApp.app_sid = app_sid
26
+ Aspose::Cloud::Common::AsposeApp.output_location = 'F:\\'
27
+ Aspose::Cloud::Common::Product.set_base_product_uri('http://api.aspose.com/v1.1')
28
+
29
+ # Create object of slides converter class
30
+ slides_converter = Aspose::Cloud::Slides::Converter.new('filename/on/storage')
31
+
32
+ # Convert a slide to any of supported formats e.g (jpeg,tiff,png)
33
+ # @filename will be used as the source file
34
+ # output will be stored on output_location
35
+ slides_converter.convert(1,'png')
@@ -0,0 +1,42 @@
1
+ # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
+ #
3
+ # LICENSE: This program is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU General Public License
5
+ # as published by the Free Software Foundation; either version 3
6
+ # of the License, or (at your option) any later version.
7
+ # This program is distributed in the hope that it will be useful,
8
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ # GNU General Public License for more details.
11
+ # You should have received a copy of the GNU General Public License
12
+ # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
+ #
14
+ # @package Aspose_Cloud_SDK_For_Ruby
15
+ # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
+ # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
+
18
+ # Require asposecloudsdk
19
+ require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposecloud'
20
+
21
+ app_sid = '****'
22
+ app_key = '****'
23
+
24
+ Aspose::Cloud::Common::AsposeApp.app_key = app_key
25
+ Aspose::Cloud::Common::AsposeApp.app_sid = app_sid
26
+ Aspose::Cloud::Common::AsposeApp.output_location = 'path/to/output/location'
27
+ Aspose::Cloud::Common::Product.set_base_product_uri('http://api.aspose.com/v1.1')
28
+
29
+ # Create object of folder class
30
+ folder = Aspose::Cloud::AsposeStorage::Folder.new
31
+
32
+ # Create folder
33
+ puts 'Folder Created Sucessfully.' if folder.create_folder('testFolder')
34
+
35
+ # Test fileExiss
36
+ puts 'File found.' if folder.file_exists('testFolder')
37
+
38
+ # Delete Folder
39
+ puts 'Folder Deleted.' if folder.delete_folder('testFolder')
40
+
41
+ #Upload a file
42
+ puts 'File uploaded successfully.' if folder.upload_file('path/to/output/location/file_to.upload')