groupdocs_conversion_cloud 23.10 → 23.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d350b3b5646aa0046522b4dd7c103cf35e6ed6a3
4
- data.tar.gz: b84d04e4e6e163d1fa9265617f43ddbc4f596b9c
2
+ SHA256:
3
+ metadata.gz: 91c37f404fdec4713c93e3106c5ac4157a5ef8e67e171f8b80df923a562b110e
4
+ data.tar.gz: 3aef4479f471837a61eafa51314e9a790c69bb662208109dbdc40fc2cdbfab1f
5
5
  SHA512:
6
- metadata.gz: ea0cfeb486ce78cabfc78ffdc1132852d31c43c4451216b22d5c2dfaff146810155c739b0b8db9f7ae2791a09468ef29dd3df7816f087e51905eec9f73b4bf31
7
- data.tar.gz: b888847bd449e7c3e7d93601a2c7e76ffd3efbefef207bed6def41df747345a42b99dce0daa80a57cf524761a6b0052fb70a97a94a440db135ad3d2b865ee49f
6
+ metadata.gz: 3564303493ee9c7577dc3884a3c963d084b984c74a2878698164d9eee061ee6aba8a911ee7ca9ecc58261baf4ada6e0a04be5731bbdf586b5aae850e89f86480
7
+ data.tar.gz: a8ff5ad0b18c0a11ff02bca5f0f79b58fc7531a650c9b4fe4912d1ff053ce81ed62addbbc8c4e1dd5af971126e425a7f3f400cda7b9af64a562d8784bf896c7a
@@ -28,7 +28,6 @@ require 'json'
28
28
  require 'logger'
29
29
  require 'tempfile'
30
30
  require 'faraday'
31
- require 'mimemagic'
32
31
  require 'addressable'
33
32
  require_relative 'version'
34
33
  require_relative 'api_client_error'
@@ -281,7 +280,7 @@ module GroupDocsConversionCloud
281
280
  form_params.each do |key, value|
282
281
  case value
283
282
  when ::File
284
- data[key] = Faraday::UploadIO.new(value.path, MimeMagic.by_magic(value).to_s, key)
283
+ data[key] = Faraday::UploadIO.new(value.path, "application/octet-stream", key)
285
284
  when ::Array, nil
286
285
  data[key] = value
287
286
  else
@@ -34,6 +34,33 @@ module GroupDocsConversionCloud
34
34
  # The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
35
35
  attr_accessor :format
36
36
 
37
+ # Default font for Cells document. The following font will be used if a font is missing.
38
+ attr_accessor :default_font
39
+
40
+ # Substitute specific fonts when converting Cells document.
41
+ attr_accessor :font_substitutes
42
+
43
+ # Show grid lines when converting Excel files
44
+ attr_accessor :show_grid_lines
45
+
46
+ # Show hidden sheets when converting Excel files
47
+ attr_accessor :show_hidden_sheets
48
+
49
+ # If OnePagePerSheet is true the content of the sheet will be converted to one page in the PDF document. Default value is true.
50
+ attr_accessor :one_page_per_sheet
51
+
52
+ # Convert specific range when converting to other than cells format. Example: \"D1:F8\"
53
+ attr_accessor :convert_range
54
+
55
+ # Skips empty rows and columns when converting. Default is True.
56
+ attr_accessor :skip_empty_rows_and_columns
57
+
58
+ # Set password to unprotect protected document
59
+ attr_accessor :password
60
+
61
+ # Hide comments
62
+ attr_accessor :hide_comments
63
+
37
64
  # Delimiter of a Csv file
38
65
  attr_accessor :separator
39
66
 
@@ -56,6 +83,15 @@ module GroupDocsConversionCloud
56
83
  def self.attribute_map
57
84
  {
58
85
  :'format' => :'Format',
86
+ :'default_font' => :'DefaultFont',
87
+ :'font_substitutes' => :'FontSubstitutes',
88
+ :'show_grid_lines' => :'ShowGridLines',
89
+ :'show_hidden_sheets' => :'ShowHiddenSheets',
90
+ :'one_page_per_sheet' => :'OnePagePerSheet',
91
+ :'convert_range' => :'ConvertRange',
92
+ :'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
93
+ :'password' => :'Password',
94
+ :'hide_comments' => :'HideComments',
59
95
  :'separator' => :'Separator',
60
96
  :'is_multi_encoded' => :'IsMultiEncoded',
61
97
  :'has_formula' => :'HasFormula',
@@ -69,6 +105,15 @@ module GroupDocsConversionCloud
69
105
  def self.swagger_types
70
106
  {
71
107
  :'format' => :'String',
108
+ :'default_font' => :'String',
109
+ :'font_substitutes' => :'Hash<String, String>',
110
+ :'show_grid_lines' => :'BOOLEAN',
111
+ :'show_hidden_sheets' => :'BOOLEAN',
112
+ :'one_page_per_sheet' => :'BOOLEAN',
113
+ :'convert_range' => :'String',
114
+ :'skip_empty_rows_and_columns' => :'BOOLEAN',
115
+ :'password' => :'String',
116
+ :'hide_comments' => :'BOOLEAN',
72
117
  :'separator' => :'String',
73
118
  :'is_multi_encoded' => :'BOOLEAN',
74
119
  :'has_formula' => :'BOOLEAN',
@@ -90,6 +135,44 @@ module GroupDocsConversionCloud
90
135
  self.format = attributes[:'Format']
91
136
  end
92
137
 
138
+ if attributes.key?(:'DefaultFont')
139
+ self.default_font = attributes[:'DefaultFont']
140
+ end
141
+
142
+ if attributes.key?(:'FontSubstitutes')
143
+ if (value = attributes[:'FontSubstitutes']).is_a?(Hash)
144
+ self.font_substitutes = value
145
+ end
146
+ end
147
+
148
+ if attributes.key?(:'ShowGridLines')
149
+ self.show_grid_lines = attributes[:'ShowGridLines']
150
+ end
151
+
152
+ if attributes.key?(:'ShowHiddenSheets')
153
+ self.show_hidden_sheets = attributes[:'ShowHiddenSheets']
154
+ end
155
+
156
+ if attributes.key?(:'OnePagePerSheet')
157
+ self.one_page_per_sheet = attributes[:'OnePagePerSheet']
158
+ end
159
+
160
+ if attributes.key?(:'ConvertRange')
161
+ self.convert_range = attributes[:'ConvertRange']
162
+ end
163
+
164
+ if attributes.key?(:'SkipEmptyRowsAndColumns')
165
+ self.skip_empty_rows_and_columns = attributes[:'SkipEmptyRowsAndColumns']
166
+ end
167
+
168
+ if attributes.key?(:'Password')
169
+ self.password = attributes[:'Password']
170
+ end
171
+
172
+ if attributes.key?(:'HideComments')
173
+ self.hide_comments = attributes[:'HideComments']
174
+ end
175
+
93
176
  if attributes.key?(:'Separator')
94
177
  self.separator = attributes[:'Separator']
95
178
  end
@@ -120,6 +203,26 @@ module GroupDocsConversionCloud
120
203
  # @return Array for valid properies with the reasons
121
204
  def list_invalid_properties
122
205
  invalid_properties = []
206
+ if @show_grid_lines.nil?
207
+ invalid_properties.push("invalid value for 'show_grid_lines', show_grid_lines cannot be nil.")
208
+ end
209
+
210
+ if @show_hidden_sheets.nil?
211
+ invalid_properties.push("invalid value for 'show_hidden_sheets', show_hidden_sheets cannot be nil.")
212
+ end
213
+
214
+ if @one_page_per_sheet.nil?
215
+ invalid_properties.push("invalid value for 'one_page_per_sheet', one_page_per_sheet cannot be nil.")
216
+ end
217
+
218
+ if @skip_empty_rows_and_columns.nil?
219
+ invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
220
+ end
221
+
222
+ if @hide_comments.nil?
223
+ invalid_properties.push("invalid value for 'hide_comments', hide_comments cannot be nil.")
224
+ end
225
+
123
226
  if @separator.nil?
124
227
  invalid_properties.push("invalid value for 'separator', separator cannot be nil.")
125
228
  end
@@ -146,6 +249,11 @@ module GroupDocsConversionCloud
146
249
  # Check to see if the all the properties in the model are valid
147
250
  # @return true if the model is valid
148
251
  def valid?
252
+ return false if @show_grid_lines.nil?
253
+ return false if @show_hidden_sheets.nil?
254
+ return false if @one_page_per_sheet.nil?
255
+ return false if @skip_empty_rows_and_columns.nil?
256
+ return false if @hide_comments.nil?
149
257
  return false if @separator.nil?
150
258
  return false if @is_multi_encoded.nil?
151
259
  return false if @has_formula.nil?
@@ -160,6 +268,15 @@ module GroupDocsConversionCloud
160
268
  return true if self.equal?(other)
161
269
  self.class == other.class &&
162
270
  format == other.format &&
271
+ default_font == other.default_font &&
272
+ font_substitutes == other.font_substitutes &&
273
+ show_grid_lines == other.show_grid_lines &&
274
+ show_hidden_sheets == other.show_hidden_sheets &&
275
+ one_page_per_sheet == other.one_page_per_sheet &&
276
+ convert_range == other.convert_range &&
277
+ skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
278
+ password == other.password &&
279
+ hide_comments == other.hide_comments &&
163
280
  separator == other.separator &&
164
281
  is_multi_encoded == other.is_multi_encoded &&
165
282
  has_formula == other.has_formula &&
@@ -177,7 +294,7 @@ module GroupDocsConversionCloud
177
294
  # Calculates hash code according to all attributes.
178
295
  # @return [Fixnum] Hash code
179
296
  def hash
180
- [format, separator, is_multi_encoded, has_formula, convert_numeric_data, convert_date_time_data, encoding].hash
297
+ [format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, hide_comments, separator, is_multi_encoded, has_formula, convert_numeric_data, convert_date_time_data, encoding].hash
181
298
  end
182
299
 
183
300
  # Downcases first letter.
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module GroupDocsConversionCloud
28
- VERSION = "23.10".freeze
28
+ VERSION = "23.12".freeze
29
29
  end
@@ -52,7 +52,6 @@ require_relative 'groupdocs_conversion_cloud/models/stored_converted_result'
52
52
  require_relative 'groupdocs_conversion_cloud/models/supported_format'
53
53
  require_relative 'groupdocs_conversion_cloud/models/watermark_options'
54
54
  require_relative 'groupdocs_conversion_cloud/models/cad_load_options'
55
- require_relative 'groupdocs_conversion_cloud/models/csv_load_options'
56
55
  require_relative 'groupdocs_conversion_cloud/models/diagram_load_options'
57
56
  require_relative 'groupdocs_conversion_cloud/models/e_book_convert_options'
58
57
  require_relative 'groupdocs_conversion_cloud/models/email_load_options'
@@ -77,6 +76,7 @@ require_relative 'groupdocs_conversion_cloud/models/word_processing_load_options
77
76
  require_relative 'groupdocs_conversion_cloud/models/xml_load_options'
78
77
  require_relative 'groupdocs_conversion_cloud/models/bmp_convert_options'
79
78
  require_relative 'groupdocs_conversion_cloud/models/bmp_load_options'
79
+ require_relative 'groupdocs_conversion_cloud/models/csv_load_options'
80
80
  require_relative 'groupdocs_conversion_cloud/models/dcm_convert_options'
81
81
  require_relative 'groupdocs_conversion_cloud/models/dcm_load_options'
82
82
  require_relative 'groupdocs_conversion_cloud/models/dgn_load_options'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs_conversion_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '23.10'
4
+ version: '23.12'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GroupDocs
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-16 00:00:00.000000000 Z
11
+ date: 2023-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -259,7 +259,7 @@ licenses:
259
259
  - MIT
260
260
  metadata:
261
261
  source_code_uri: https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-ruby
262
- post_install_message:
262
+ post_install_message:
263
263
  rdoc_options: []
264
264
  require_paths:
265
265
  - lib
@@ -274,9 +274,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
274
  - !ruby/object:Gem::Version
275
275
  version: '0'
276
276
  requirements: []
277
- rubyforge_project:
278
- rubygems_version: 2.6.14.1
279
- signing_key:
277
+ rubygems_version: 3.1.6
278
+ signing_key:
280
279
  specification_version: 4
281
280
  summary: GroupDocs.Conversion Cloud Ruby SDK
282
281
  test_files: []