cloudmersive-convert-api-client 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -4
- data/docs/ConvertDataApi.md +117 -3
- data/docs/ConvertDocumentApi.md +159 -0
- data/docs/EditPdfApi.md +169 -0
- data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +117 -4
- data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +156 -0
- data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +168 -0
- data/lib/cloudmersive-convert-api-client/version.rb +1 -1
- data/spec/api/convert_data_api_spec.rb +26 -1
- data/spec/api/convert_document_api_spec.rb +35 -0
- data/spec/api/edit_pdf_api_spec.rb +37 -0
- metadata +2 -2
@@ -45,6 +45,19 @@ describe 'ConvertDataApi' do
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
+
# unit tests for convert_data_csv_to_xml
|
49
|
+
# Convert CSV to XML conversion
|
50
|
+
# Convert a CSV file to a XML file
|
51
|
+
# @param input_file Input file to perform the operation on.
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [BOOLEAN] :column_names_from_first_row Optional; If true, the first row will be used as the labels for the columns; if false, columns will be named Column0, Column1, etc. Default is true. Set to false if you are not using column headings, or have an irregular column structure.
|
54
|
+
# @return [String]
|
55
|
+
describe 'convert_data_csv_to_xml test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
48
61
|
# unit tests for convert_data_json_to_xml
|
49
62
|
# Convert JSON to XML conversion
|
50
63
|
# Convert a JSON object into XML
|
@@ -74,13 +87,25 @@ describe 'ConvertDataApi' do
|
|
74
87
|
# Convert an Excel XLSX file to a JSON object array
|
75
88
|
# @param input_file Input file to perform the operation on.
|
76
89
|
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [
|
90
|
+
# @return [String]
|
78
91
|
describe 'convert_data_xlsx_to_json test' do
|
79
92
|
it 'should work' do
|
80
93
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
94
|
end
|
82
95
|
end
|
83
96
|
|
97
|
+
# unit tests for convert_data_xlsx_to_xml
|
98
|
+
# Convert Excel XLSX to XML conversion
|
99
|
+
# Convert an Excel XLSX file to a XML file
|
100
|
+
# @param input_file Input file to perform the operation on.
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [String]
|
103
|
+
describe 'convert_data_xlsx_to_xml test' do
|
104
|
+
it 'should work' do
|
105
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
84
109
|
# unit tests for convert_data_xml_edit_add_attribute_with_x_path
|
85
110
|
# Adds an attribute to all XML nodes matching XPath expression
|
86
111
|
# Return the reuslts of editing an XML document by adding an attribute to all of the nodes that match an input XPath expression.
|
@@ -219,6 +219,18 @@ describe 'ConvertDocumentApi' do
|
|
219
219
|
end
|
220
220
|
end
|
221
221
|
|
222
|
+
# unit tests for convert_document_docx_to_doc
|
223
|
+
# Convert Word DOCX Document to Legacy Word DOC (97-03)
|
224
|
+
# Convert/downgrade modern Office Word DOCX Documents (DOCX) to the legacy Word DOC (97-2003 Format) format
|
225
|
+
# @param input_file Input file to perform the operation on.
|
226
|
+
# @param [Hash] opts the optional parameters
|
227
|
+
# @return [String]
|
228
|
+
describe 'convert_document_docx_to_doc test' do
|
229
|
+
it 'should work' do
|
230
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
222
234
|
# unit tests for convert_document_docx_to_html
|
223
235
|
# Convert Word DOCX Document to HTML Document
|
224
236
|
# Convert Office Word Document (DOCX) to HTML Document
|
@@ -812,6 +824,17 @@ describe 'ConvertDocumentApi' do
|
|
812
824
|
end
|
813
825
|
end
|
814
826
|
|
827
|
+
# unit tests for convert_document_pptx_to_ppt
|
828
|
+
# Convert PowerPoint PPTX presentation to Legacy PowerPoint PPT (97-03)
|
829
|
+
# Convert/downgrade modern Office PowerPoint PPTX Presentation to the legacy PowerPoint PPT (97-2003 Format) format
|
830
|
+
# @param [Hash] opts the optional parameters
|
831
|
+
# @return [Object]
|
832
|
+
describe 'convert_document_pptx_to_ppt test' do
|
833
|
+
it 'should work' do
|
834
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
835
|
+
end
|
836
|
+
end
|
837
|
+
|
815
838
|
# unit tests for convert_document_pptx_to_txt
|
816
839
|
# Convert PowerPoint PPTX Presentation to Text (txt)
|
817
840
|
# Convert Office PowerPoint Documents (pptx) to standard Text
|
@@ -995,4 +1018,16 @@ describe 'ConvertDocumentApi' do
|
|
995
1018
|
end
|
996
1019
|
end
|
997
1020
|
|
1021
|
+
# unit tests for convert_document_xlsx_to_xls
|
1022
|
+
# Convert Excel XLSX Spreadsheet to Legacy Excel XLS (97-03)
|
1023
|
+
# Convert/downgrade modern Office Excel XLSX Spreadsheet to the legacy Excel XLS (97-2003 Format) format
|
1024
|
+
# @param input_file Input file to perform the operation on.
|
1025
|
+
# @param [Hash] opts the optional parameters
|
1026
|
+
# @return [String]
|
1027
|
+
describe 'convert_document_xlsx_to_xls test' do
|
1028
|
+
it 'should work' do
|
1029
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1030
|
+
end
|
1031
|
+
end
|
1032
|
+
|
998
1033
|
end
|
@@ -44,6 +44,19 @@ describe 'EditPdfApi' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
+
# unit tests for edit_pdf_convert_to_pdf_a
|
48
|
+
# Convert a PDF file to PDF/A
|
49
|
+
# Converts the input PDF file to a PDF/A-1b or PDF/A-2b standardized PDF.
|
50
|
+
# @param input_file Input file to perform the operation on.
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [String] :conformance_level Optional: Select the conformance level for PDF/A - specify '1b' for PDF/A-1b or specify '2b' for PDF/A-2b; default is PDF/A-1b
|
53
|
+
# @return [String]
|
54
|
+
describe 'edit_pdf_convert_to_pdf_a test' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
47
60
|
# unit tests for edit_pdf_decrypt
|
48
61
|
# Decrypt and password-protect a PDF
|
49
62
|
# Decrypt a PDF document with a password. Decrypted PDF will no longer require a password to open.
|
@@ -151,6 +164,18 @@ describe 'EditPdfApi' do
|
|
151
164
|
end
|
152
165
|
end
|
153
166
|
|
167
|
+
# unit tests for edit_pdf_linearize
|
168
|
+
# Linearize and optimize a PDF for streaming download
|
169
|
+
# Linearizes the content of a PDF to optimize it for streaming download, particularly over web streaming.
|
170
|
+
# @param input_file Input file to perform the operation on.
|
171
|
+
# @param [Hash] opts the optional parameters
|
172
|
+
# @return [String]
|
173
|
+
describe 'edit_pdf_linearize test' do
|
174
|
+
it 'should work' do
|
175
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
154
179
|
# unit tests for edit_pdf_rasterize
|
155
180
|
# Rasterize a PDF to an image-based PDF
|
156
181
|
# Rasterize a PDF into an image-based PDF. The output is a PDF where each page is comprised of a high-resolution image, with all text, figures and other components removed.
|
@@ -163,6 +188,18 @@ describe 'EditPdfApi' do
|
|
163
188
|
end
|
164
189
|
end
|
165
190
|
|
191
|
+
# unit tests for edit_pdf_reduce_file_size
|
192
|
+
# Reduce the file size and optimize a PDF
|
193
|
+
# Reduces the file size and optimizes the content of a PDF to minimize its file size.
|
194
|
+
# @param input_file Input file to perform the operation on.
|
195
|
+
# @param [Hash] opts the optional parameters
|
196
|
+
# @return [String]
|
197
|
+
describe 'edit_pdf_reduce_file_size test' do
|
198
|
+
it 'should work' do
|
199
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
166
203
|
# unit tests for edit_pdf_remove_all_annotations
|
167
204
|
# Remove all PDF annotations, including comments in the document
|
168
205
|
# Removes all of the annotations, including comments and notes, in a PDF document.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudmersive-convert-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|