groupdocs_conversion_cloud 20.11 → 21.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_conversion_cloud/api/convert_api.rb +3 -3
  3. data/lib/groupdocs_conversion_cloud/api/file_api.rb +6 -6
  4. data/lib/groupdocs_conversion_cloud/api/folder_api.rb +6 -6
  5. data/lib/groupdocs_conversion_cloud/api/info_api.rb +3 -3
  6. data/lib/groupdocs_conversion_cloud/api/storage_api.rb +5 -5
  7. data/lib/groupdocs_conversion_cloud/api_client.rb +1 -1
  8. data/lib/groupdocs_conversion_cloud/api_error.rb +18 -5
  9. data/lib/groupdocs_conversion_cloud/configuration.rb +1 -1
  10. data/lib/groupdocs_conversion_cloud/models/bmp_convert_options.rb +1 -1
  11. data/lib/groupdocs_conversion_cloud/models/bmp_load_options.rb +1 -1
  12. data/lib/groupdocs_conversion_cloud/models/cad_load_options.rb +1 -1
  13. data/lib/groupdocs_conversion_cloud/models/cgm_convert_options.rb +1 -1
  14. data/lib/groupdocs_conversion_cloud/models/convert_options.rb +1 -1
  15. data/lib/groupdocs_conversion_cloud/models/convert_settings.rb +15 -5
  16. data/lib/groupdocs_conversion_cloud/models/csv_load_options.rb +1 -1
  17. data/lib/groupdocs_conversion_cloud/models/dcm_convert_options.rb +1 -1
  18. data/lib/groupdocs_conversion_cloud/models/dcm_load_options.rb +1 -1
  19. data/lib/groupdocs_conversion_cloud/models/dgn_load_options.rb +1 -1
  20. data/lib/groupdocs_conversion_cloud/models/diagram_load_options.rb +1 -1
  21. data/lib/groupdocs_conversion_cloud/models/disc_usage.rb +1 -1
  22. data/lib/groupdocs_conversion_cloud/models/djvu_convert_options.rb +1 -1
  23. data/lib/groupdocs_conversion_cloud/models/dng_convert_options.rb +1 -1
  24. data/lib/groupdocs_conversion_cloud/models/dng_load_options.rb +1 -1
  25. data/lib/groupdocs_conversion_cloud/models/doc_convert_options.rb +57 -5
  26. data/lib/groupdocs_conversion_cloud/models/doc_load_options.rb +1 -1
  27. data/lib/groupdocs_conversion_cloud/models/docm_convert_options.rb +57 -5
  28. data/lib/groupdocs_conversion_cloud/models/docm_load_options.rb +1 -1
  29. data/lib/groupdocs_conversion_cloud/models/document_metadata.rb +1 -1
  30. data/lib/groupdocs_conversion_cloud/models/docx_convert_options.rb +57 -5
  31. data/lib/groupdocs_conversion_cloud/models/docx_load_options.rb +1 -1
  32. data/lib/groupdocs_conversion_cloud/models/dot_convert_options.rb +57 -5
  33. data/lib/groupdocs_conversion_cloud/models/dot_load_options.rb +1 -1
  34. data/lib/groupdocs_conversion_cloud/models/dotm_convert_options.rb +57 -5
  35. data/lib/groupdocs_conversion_cloud/models/dotm_load_options.rb +1 -1
  36. data/lib/groupdocs_conversion_cloud/models/dotx_convert_options.rb +57 -5
  37. data/lib/groupdocs_conversion_cloud/models/dotx_load_options.rb +1 -1
  38. data/lib/groupdocs_conversion_cloud/models/dwf_load_options.rb +1 -1
  39. data/lib/groupdocs_conversion_cloud/models/dwg_load_options.rb +1 -1
  40. data/lib/groupdocs_conversion_cloud/models/dxf_load_options.rb +1 -1
  41. data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +1 -1
  42. data/lib/groupdocs_conversion_cloud/models/emf_convert_options.rb +1 -1
  43. data/lib/groupdocs_conversion_cloud/models/emf_load_options.rb +1 -1
  44. data/lib/groupdocs_conversion_cloud/models/eml_load_options.rb +1 -1
  45. data/lib/groupdocs_conversion_cloud/models/emlx_load_options.rb +1 -1
  46. data/lib/groupdocs_conversion_cloud/models/epub_convert_options.rb +1 -1
  47. data/lib/groupdocs_conversion_cloud/models/error.rb +1 -1
  48. data/lib/groupdocs_conversion_cloud/models/error_details.rb +1 -1
  49. data/lib/groupdocs_conversion_cloud/models/field_label.rb +1 -1
  50. data/lib/groupdocs_conversion_cloud/models/file_version.rb +1 -1
  51. data/lib/groupdocs_conversion_cloud/models/file_versions.rb +1 -1
  52. data/lib/groupdocs_conversion_cloud/models/files_list.rb +1 -1
  53. data/lib/groupdocs_conversion_cloud/models/files_upload_result.rb +1 -1
  54. data/lib/groupdocs_conversion_cloud/models/gif_convert_options.rb +1 -1
  55. data/lib/groupdocs_conversion_cloud/models/gif_load_options.rb +1 -1
  56. data/lib/groupdocs_conversion_cloud/models/html_convert_options.rb +1 -1
  57. data/lib/groupdocs_conversion_cloud/models/html_load_options.rb +1 -1
  58. data/lib/groupdocs_conversion_cloud/models/ico_convert_options.rb +1 -1
  59. data/lib/groupdocs_conversion_cloud/models/ico_load_options.rb +1 -1
  60. data/lib/groupdocs_conversion_cloud/models/ifc_load_options.rb +1 -1
  61. data/lib/groupdocs_conversion_cloud/models/igs_load_options.rb +1 -1
  62. data/lib/groupdocs_conversion_cloud/models/image_convert_options.rb +1 -1
  63. data/lib/groupdocs_conversion_cloud/models/image_load_options.rb +1 -1
  64. data/lib/groupdocs_conversion_cloud/models/j2c_convert_options.rb +1 -1
  65. data/lib/groupdocs_conversion_cloud/models/j2c_load_options.rb +1 -1
  66. data/lib/groupdocs_conversion_cloud/models/j2k_convert_options.rb +1 -1
  67. data/lib/groupdocs_conversion_cloud/models/j2k_load_options.rb +1 -1
  68. data/lib/groupdocs_conversion_cloud/models/jp2_convert_options.rb +1 -1
  69. data/lib/groupdocs_conversion_cloud/models/jp2_load_options.rb +1 -1
  70. data/lib/groupdocs_conversion_cloud/models/jpeg_convert_options.rb +1 -1
  71. data/lib/groupdocs_conversion_cloud/models/jpeg_load_options.rb +1 -1
  72. data/lib/groupdocs_conversion_cloud/models/jpf_convert_options.rb +1 -1
  73. data/lib/groupdocs_conversion_cloud/models/jpf_load_options.rb +1 -1
  74. data/lib/groupdocs_conversion_cloud/models/jpg_convert_options.rb +1 -1
  75. data/lib/groupdocs_conversion_cloud/models/jpg_load_options.rb +1 -1
  76. data/lib/groupdocs_conversion_cloud/models/jpm_convert_options.rb +1 -1
  77. data/lib/groupdocs_conversion_cloud/models/jpm_load_options.rb +1 -1
  78. data/lib/groupdocs_conversion_cloud/models/jpx_convert_options.rb +1 -1
  79. data/lib/groupdocs_conversion_cloud/models/jpx_load_options.rb +1 -1
  80. data/lib/groupdocs_conversion_cloud/models/load_options.rb +1 -1
  81. data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +1 -1
  82. data/lib/groupdocs_conversion_cloud/models/mobi_load_options.rb +1 -1
  83. data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +1 -1
  84. data/lib/groupdocs_conversion_cloud/models/object_exist.rb +1 -1
  85. data/lib/groupdocs_conversion_cloud/models/odg_convert_options.rb +1 -1
  86. data/lib/groupdocs_conversion_cloud/models/odg_load_options.rb +1 -1
  87. data/lib/groupdocs_conversion_cloud/models/odp_convert_options.rb +1 -1
  88. data/lib/groupdocs_conversion_cloud/models/odp_load_options.rb +1 -1
  89. data/lib/groupdocs_conversion_cloud/models/ods_convert_options.rb +1 -1
  90. data/lib/groupdocs_conversion_cloud/models/ods_load_options.rb +1 -1
  91. data/lib/groupdocs_conversion_cloud/models/odt_convert_options.rb +57 -5
  92. data/lib/groupdocs_conversion_cloud/models/odt_load_options.rb +1 -1
  93. data/lib/groupdocs_conversion_cloud/models/one_load_options.rb +1 -1
  94. data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +1 -1
  95. data/lib/groupdocs_conversion_cloud/models/otp_convert_options.rb +1 -1
  96. data/lib/groupdocs_conversion_cloud/models/otp_load_options.rb +1 -1
  97. data/lib/groupdocs_conversion_cloud/models/ots_convert_options.rb +1 -1
  98. data/lib/groupdocs_conversion_cloud/models/ots_load_options.rb +1 -1
  99. data/lib/groupdocs_conversion_cloud/models/ott_convert_options.rb +57 -5
  100. data/lib/groupdocs_conversion_cloud/models/ott_load_options.rb +1 -1
  101. data/lib/groupdocs_conversion_cloud/models/pdf_convert_options.rb +1 -1
  102. data/lib/groupdocs_conversion_cloud/models/pdf_load_options.rb +1 -1
  103. data/lib/groupdocs_conversion_cloud/models/plt_load_options.rb +1 -1
  104. data/lib/groupdocs_conversion_cloud/models/png_convert_options.rb +1 -1
  105. data/lib/groupdocs_conversion_cloud/models/png_load_options.rb +1 -1
  106. data/lib/groupdocs_conversion_cloud/models/potm_convert_options.rb +1 -1
  107. data/lib/groupdocs_conversion_cloud/models/potm_load_options.rb +1 -1
  108. data/lib/groupdocs_conversion_cloud/models/potx_convert_options.rb +1 -1
  109. data/lib/groupdocs_conversion_cloud/models/potx_load_options.rb +1 -1
  110. data/lib/groupdocs_conversion_cloud/models/pps_convert_options.rb +1 -1
  111. data/lib/groupdocs_conversion_cloud/models/pps_load_options.rb +1 -1
  112. data/lib/groupdocs_conversion_cloud/models/ppsm_convert_options.rb +1 -1
  113. data/lib/groupdocs_conversion_cloud/models/ppsm_load_options.rb +1 -1
  114. data/lib/groupdocs_conversion_cloud/models/ppsx_convert_options.rb +1 -1
  115. data/lib/groupdocs_conversion_cloud/models/ppsx_load_options.rb +1 -1
  116. data/lib/groupdocs_conversion_cloud/models/ppt_convert_options.rb +1 -1
  117. data/lib/groupdocs_conversion_cloud/models/ppt_load_options.rb +1 -1
  118. data/lib/groupdocs_conversion_cloud/models/pptm_convert_options.rb +1 -1
  119. data/lib/groupdocs_conversion_cloud/models/pptm_load_options.rb +1 -1
  120. data/lib/groupdocs_conversion_cloud/models/pptx_convert_options.rb +1 -1
  121. data/lib/groupdocs_conversion_cloud/models/pptx_load_options.rb +1 -1
  122. data/lib/groupdocs_conversion_cloud/models/presentation_convert_options.rb +1 -1
  123. data/lib/groupdocs_conversion_cloud/models/presentation_load_options.rb +1 -1
  124. data/lib/groupdocs_conversion_cloud/models/psd_convert_options.rb +1 -1
  125. data/lib/groupdocs_conversion_cloud/models/psd_load_options.rb +1 -1
  126. data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +1 -1
  127. data/lib/groupdocs_conversion_cloud/models/rtf_convert_options.rb +54 -2
  128. data/lib/groupdocs_conversion_cloud/models/spreadsheet_convert_options.rb +1 -1
  129. data/lib/groupdocs_conversion_cloud/models/spreadsheet_load_options.rb +1 -1
  130. data/lib/groupdocs_conversion_cloud/models/stl_load_options.rb +1 -1
  131. data/lib/groupdocs_conversion_cloud/models/storage_exist.rb +1 -1
  132. data/lib/groupdocs_conversion_cloud/models/storage_file.rb +1 -1
  133. data/lib/groupdocs_conversion_cloud/models/stored_converted_result.rb +1 -1
  134. data/lib/groupdocs_conversion_cloud/models/supported_format.rb +1 -1
  135. data/lib/groupdocs_conversion_cloud/models/svg_convert_options.rb +1 -1
  136. data/lib/groupdocs_conversion_cloud/models/tif_convert_options.rb +1 -1
  137. data/lib/groupdocs_conversion_cloud/models/tif_load_options.rb +1 -1
  138. data/lib/groupdocs_conversion_cloud/models/tiff_convert_options.rb +1 -1
  139. data/lib/groupdocs_conversion_cloud/models/tiff_load_options.rb +1 -1
  140. data/lib/groupdocs_conversion_cloud/models/tsv_convert_options.rb +1 -1
  141. data/lib/groupdocs_conversion_cloud/models/tsv_load_options.rb +1 -1
  142. data/lib/groupdocs_conversion_cloud/models/txt_convert_options.rb +1 -1
  143. data/lib/groupdocs_conversion_cloud/models/txt_load_options.rb +1 -1
  144. data/lib/groupdocs_conversion_cloud/models/vdw_load_options.rb +1 -1
  145. data/lib/groupdocs_conversion_cloud/models/vdx_load_options.rb +1 -1
  146. data/lib/groupdocs_conversion_cloud/models/vsd_load_options.rb +1 -1
  147. data/lib/groupdocs_conversion_cloud/models/vsdm_load_options.rb +1 -1
  148. data/lib/groupdocs_conversion_cloud/models/vsdx_load_options.rb +1 -1
  149. data/lib/groupdocs_conversion_cloud/models/vss_load_options.rb +1 -1
  150. data/lib/groupdocs_conversion_cloud/models/vssm_load_options.rb +1 -1
  151. data/lib/groupdocs_conversion_cloud/models/vssx_load_options.rb +1 -1
  152. data/lib/groupdocs_conversion_cloud/models/vst_load_options.rb +1 -1
  153. data/lib/groupdocs_conversion_cloud/models/vstm_load_options.rb +1 -1
  154. data/lib/groupdocs_conversion_cloud/models/vstx_load_options.rb +1 -1
  155. data/lib/groupdocs_conversion_cloud/models/vsx_load_options.rb +1 -1
  156. data/lib/groupdocs_conversion_cloud/models/vtx_load_options.rb +1 -1
  157. data/lib/groupdocs_conversion_cloud/models/watermark_options.rb +50 -5
  158. data/lib/groupdocs_conversion_cloud/models/webp_convert_options.rb +1 -1
  159. data/lib/groupdocs_conversion_cloud/models/webp_load_options.rb +1 -1
  160. data/lib/groupdocs_conversion_cloud/models/wmf_convert_options.rb +1 -1
  161. data/lib/groupdocs_conversion_cloud/models/wmf_load_options.rb +1 -1
  162. data/lib/groupdocs_conversion_cloud/models/word_processing_convert_options.rb +57 -5
  163. data/lib/groupdocs_conversion_cloud/models/word_processing_load_options.rb +1 -1
  164. data/lib/groupdocs_conversion_cloud/models/xls2003_convert_options.rb +1 -1
  165. data/lib/groupdocs_conversion_cloud/models/xls2003_load_options.rb +1 -1
  166. data/lib/groupdocs_conversion_cloud/models/xls_convert_options.rb +1 -1
  167. data/lib/groupdocs_conversion_cloud/models/xls_load_options.rb +1 -1
  168. data/lib/groupdocs_conversion_cloud/models/xlsb_convert_options.rb +1 -1
  169. data/lib/groupdocs_conversion_cloud/models/xlsb_load_options.rb +1 -1
  170. data/lib/groupdocs_conversion_cloud/models/xlsm_convert_options.rb +1 -1
  171. data/lib/groupdocs_conversion_cloud/models/xlsm_load_options.rb +1 -1
  172. data/lib/groupdocs_conversion_cloud/models/xlsx_convert_options.rb +1 -1
  173. data/lib/groupdocs_conversion_cloud/models/xlsx_load_options.rb +1 -1
  174. data/lib/groupdocs_conversion_cloud/models/xltm_convert_options.rb +1 -1
  175. data/lib/groupdocs_conversion_cloud/models/xltm_load_options.rb +1 -1
  176. data/lib/groupdocs_conversion_cloud/models/xltx_convert_options.rb +1 -1
  177. data/lib/groupdocs_conversion_cloud/models/xltx_load_options.rb +1 -1
  178. data/lib/groupdocs_conversion_cloud/models/xml_load_options.rb +1 -1
  179. data/lib/groupdocs_conversion_cloud/models/xps_convert_options.rb +1 -1
  180. data/lib/groupdocs_conversion_cloud/version.rb +2 -2
  181. data/lib/groupdocs_conversion_cloud.rb +1 -1
  182. metadata +2 -16
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="rtf_convert_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -58,8 +58,32 @@ module GroupDocsConversionCloud
58
58
  # Watermark specific options
59
59
  attr_accessor :watermark_options
60
60
 
61
+ # Recognition mode when converting from pdf
62
+ attr_accessor :pdf_recognition_mode
63
+
61
64
  # Specifies whether the keywords for \"old readers\" are written to RTF or not. This can significantly affect the size of the RTF document. Default is False.
62
65
  attr_accessor :export_images_for_old_readers
66
+ class EnumAttributeValidator
67
+ attr_reader :datatype
68
+ attr_reader :allowable_values
69
+
70
+ def initialize(datatype, allowable_values)
71
+ @allowable_values = allowable_values.map do |value|
72
+ case datatype.to_s
73
+ when /Integer/i
74
+ value.to_i
75
+ when /Float/i
76
+ value.to_f
77
+ else
78
+ value
79
+ end
80
+ end
81
+ end
82
+
83
+ def valid?(value)
84
+ !value || allowable_values.include?(value)
85
+ end
86
+ end
63
87
 
64
88
  # Attribute mapping from ruby-style variable name to JSON key.
65
89
  def self.attribute_map
@@ -73,6 +97,7 @@ module GroupDocsConversionCloud
73
97
  :'password' => :'Password',
74
98
  :'zoom' => :'Zoom',
75
99
  :'watermark_options' => :'WatermarkOptions',
100
+ :'pdf_recognition_mode' => :'PdfRecognitionMode',
76
101
  :'export_images_for_old_readers' => :'ExportImagesForOldReaders'
77
102
  }
78
103
  end
@@ -89,6 +114,7 @@ module GroupDocsConversionCloud
89
114
  :'password' => :'String',
90
115
  :'zoom' => :'Integer',
91
116
  :'watermark_options' => :'WatermarkOptions',
117
+ :'pdf_recognition_mode' => :'String',
92
118
  :'export_images_for_old_readers' => :'BOOLEAN'
93
119
  }
94
120
  end
@@ -139,6 +165,10 @@ module GroupDocsConversionCloud
139
165
  self.watermark_options = attributes[:'WatermarkOptions']
140
166
  end
141
167
 
168
+ if attributes.key?(:'PdfRecognitionMode')
169
+ self.pdf_recognition_mode = attributes[:'PdfRecognitionMode']
170
+ end
171
+
142
172
  if attributes.key?(:'ExportImagesForOldReaders')
143
173
  self.export_images_for_old_readers = attributes[:'ExportImagesForOldReaders']
144
174
  end
@@ -173,6 +203,10 @@ module GroupDocsConversionCloud
173
203
  invalid_properties.push("invalid value for 'zoom', zoom cannot be nil.")
174
204
  end
175
205
 
206
+ if @pdf_recognition_mode.nil?
207
+ invalid_properties.push("invalid value for 'pdf_recognition_mode', pdf_recognition_mode cannot be nil.")
208
+ end
209
+
176
210
  if @export_images_for_old_readers.nil?
177
211
  invalid_properties.push("invalid value for 'export_images_for_old_readers', export_images_for_old_readers cannot be nil.")
178
212
  end
@@ -189,10 +223,27 @@ module GroupDocsConversionCloud
189
223
  return false if @height.nil?
190
224
  return false if @dpi.nil?
191
225
  return false if @zoom.nil?
226
+ return false if @pdf_recognition_mode.nil?
227
+ pdf_recognition_mode_validator = EnumAttributeValidator.new('String', ["Textbox", "Flow"])
228
+ return false unless pdf_recognition_mode_validator.valid?(@pdf_recognition_mode)
192
229
  return false if @export_images_for_old_readers.nil?
193
230
  return true
194
231
  end
195
232
 
233
+ # Custom attribute writer method checking allowed values (enum).
234
+ # @param [Object] pdf_recognition_mode Object to be assigned
235
+ def pdf_recognition_mode=(pdf_recognition_mode)
236
+ validator = EnumAttributeValidator.new('String', ["Textbox", "Flow"])
237
+ if pdf_recognition_mode.to_i == 0
238
+ unless validator.valid?(pdf_recognition_mode)
239
+ raise ArgumentError, "invalid value for 'pdf_recognition_mode', must be one of #{validator.allowable_values}."
240
+ end
241
+ @pdf_recognition_mode = pdf_recognition_mode
242
+ else
243
+ @pdf_recognition_mode = validator.allowable_values[pdf_recognition_mode.to_i]
244
+ end
245
+ end
246
+
196
247
  # Checks equality by comparing each attribute.
197
248
  # @param [Object] Object to be compared
198
249
  def ==(other)
@@ -207,6 +258,7 @@ module GroupDocsConversionCloud
207
258
  password == other.password &&
208
259
  zoom == other.zoom &&
209
260
  watermark_options == other.watermark_options &&
261
+ pdf_recognition_mode == other.pdf_recognition_mode &&
210
262
  export_images_for_old_readers == other.export_images_for_old_readers
211
263
  end
212
264
 
@@ -219,7 +271,7 @@ module GroupDocsConversionCloud
219
271
  # Calculates hash code according to all attributes.
220
272
  # @return [Fixnum] Hash code
221
273
  def hash
222
- [from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, export_images_for_old_readers].hash
274
+ [from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode, export_images_for_old_readers].hash
223
275
  end
224
276
 
225
277
  # Downcases first letter.
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="spreadsheet_convert_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="spreadsheet_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="stl_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="storage_exist.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="storage_file.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="stored_converted_result.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="supported_format.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="svg_convert_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="tif_convert_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="tif_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="tiff_convert_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="tiff_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="tsv_convert_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="tsv_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="txt_convert_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="txt_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vdw_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vdx_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vsd_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vsdm_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vsdx_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vss_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vssm_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vssx_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vst_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vstm_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vstx_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vsx_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="vtx_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="watermark_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -40,6 +40,12 @@ module GroupDocsConversionCloud
40
40
  # Watermark font name if text watermark is applied
41
41
  attr_accessor :font_size
42
42
 
43
+ # Watermark font bold style if text watermark is applied
44
+ attr_accessor :bold
45
+
46
+ # Watermark font italic style if text watermark is applied
47
+ attr_accessor :italic
48
+
43
49
  # Watermark font color if text watermark is applied
44
50
  attr_accessor :color
45
51
 
@@ -67,12 +73,17 @@ module GroupDocsConversionCloud
67
73
  # Image watermark
68
74
  attr_accessor :image
69
75
 
76
+ # Auto scale the watermark. If the value is true the font size and the position is automatically calculated to fit the page size.
77
+ attr_accessor :auto_align
78
+
70
79
  # Attribute mapping from ruby-style variable name to JSON key.
71
80
  def self.attribute_map
72
81
  {
73
82
  :'text' => :'Text',
74
83
  :'font_name' => :'FontName',
75
84
  :'font_size' => :'FontSize',
85
+ :'bold' => :'Bold',
86
+ :'italic' => :'Italic',
76
87
  :'color' => :'Color',
77
88
  :'width' => :'Width',
78
89
  :'height' => :'Height',
@@ -81,7 +92,8 @@ module GroupDocsConversionCloud
81
92
  :'rotation_angle' => :'RotationAngle',
82
93
  :'transparency' => :'Transparency',
83
94
  :'background' => :'Background',
84
- :'image' => :'Image'
95
+ :'image' => :'Image',
96
+ :'auto_align' => :'AutoAlign'
85
97
  }
86
98
  end
87
99
 
@@ -91,6 +103,8 @@ module GroupDocsConversionCloud
91
103
  :'text' => :'String',
92
104
  :'font_name' => :'String',
93
105
  :'font_size' => :'Integer',
106
+ :'bold' => :'BOOLEAN',
107
+ :'italic' => :'BOOLEAN',
94
108
  :'color' => :'String',
95
109
  :'width' => :'Integer',
96
110
  :'height' => :'Integer',
@@ -99,7 +113,8 @@ module GroupDocsConversionCloud
99
113
  :'rotation_angle' => :'Integer',
100
114
  :'transparency' => :'Float',
101
115
  :'background' => :'BOOLEAN',
102
- :'image' => :'String'
116
+ :'image' => :'String',
117
+ :'auto_align' => :'BOOLEAN'
103
118
  }
104
119
  end
105
120
 
@@ -123,6 +138,14 @@ module GroupDocsConversionCloud
123
138
  self.font_size = attributes[:'FontSize']
124
139
  end
125
140
 
141
+ if attributes.key?(:'Bold')
142
+ self.bold = attributes[:'Bold']
143
+ end
144
+
145
+ if attributes.key?(:'Italic')
146
+ self.italic = attributes[:'Italic']
147
+ end
148
+
126
149
  if attributes.key?(:'Color')
127
150
  self.color = attributes[:'Color']
128
151
  end
@@ -159,6 +182,10 @@ module GroupDocsConversionCloud
159
182
  self.image = attributes[:'Image']
160
183
  end
161
184
 
185
+ if attributes.key?(:'AutoAlign')
186
+ self.auto_align = attributes[:'AutoAlign']
187
+ end
188
+
162
189
  end
163
190
 
164
191
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -169,6 +196,14 @@ module GroupDocsConversionCloud
169
196
  invalid_properties.push("invalid value for 'font_size', font_size cannot be nil.")
170
197
  end
171
198
 
199
+ if @bold.nil?
200
+ invalid_properties.push("invalid value for 'bold', bold cannot be nil.")
201
+ end
202
+
203
+ if @italic.nil?
204
+ invalid_properties.push("invalid value for 'italic', italic cannot be nil.")
205
+ end
206
+
172
207
  if @width.nil?
173
208
  invalid_properties.push("invalid value for 'width', width cannot be nil.")
174
209
  end
@@ -197,6 +232,10 @@ module GroupDocsConversionCloud
197
232
  invalid_properties.push("invalid value for 'background', background cannot be nil.")
198
233
  end
199
234
 
235
+ if @auto_align.nil?
236
+ invalid_properties.push("invalid value for 'auto_align', auto_align cannot be nil.")
237
+ end
238
+
200
239
  return invalid_properties
201
240
  end
202
241
 
@@ -204,6 +243,8 @@ module GroupDocsConversionCloud
204
243
  # @return true if the model is valid
205
244
  def valid?
206
245
  return false if @font_size.nil?
246
+ return false if @bold.nil?
247
+ return false if @italic.nil?
207
248
  return false if @width.nil?
208
249
  return false if @height.nil?
209
250
  return false if @top.nil?
@@ -211,6 +252,7 @@ module GroupDocsConversionCloud
211
252
  return false if @rotation_angle.nil?
212
253
  return false if @transparency.nil?
213
254
  return false if @background.nil?
255
+ return false if @auto_align.nil?
214
256
  return true
215
257
  end
216
258
 
@@ -222,6 +264,8 @@ module GroupDocsConversionCloud
222
264
  text == other.text &&
223
265
  font_name == other.font_name &&
224
266
  font_size == other.font_size &&
267
+ bold == other.bold &&
268
+ italic == other.italic &&
225
269
  color == other.color &&
226
270
  width == other.width &&
227
271
  height == other.height &&
@@ -230,7 +274,8 @@ module GroupDocsConversionCloud
230
274
  rotation_angle == other.rotation_angle &&
231
275
  transparency == other.transparency &&
232
276
  background == other.background &&
233
- image == other.image
277
+ image == other.image &&
278
+ auto_align == other.auto_align
234
279
  end
235
280
 
236
281
  # @see the `==` method
@@ -242,7 +287,7 @@ module GroupDocsConversionCloud
242
287
  # Calculates hash code according to all attributes.
243
288
  # @return [Fixnum] Hash code
244
289
  def hash
245
- [text, font_name, font_size, color, width, height, top, left, rotation_angle, transparency, background, image].hash
290
+ [text, font_name, font_size, bold, italic, color, width, height, top, left, rotation_angle, transparency, background, image, auto_align].hash
246
291
  end
247
292
 
248
293
  # Downcases first letter.
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="webp_convert_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="webp_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="wmf_convert_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="wmf_load_options.rb">
4
- # Copyright (c) 2003-2020 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy