aspose_words_cloud 20.3.0 → 20.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (378) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud.rb +259 -234
  3. data/lib/aspose_words_cloud/api/words_api.rb +16553 -16721
  4. data/lib/aspose_words_cloud/api_client.rb +411 -405
  5. data/lib/aspose_words_cloud/api_error.rb +58 -58
  6. data/lib/aspose_words_cloud/configuration.rb +157 -173
  7. data/lib/aspose_words_cloud/models/available_fonts_response.rb +243 -243
  8. data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +475 -477
  9. data/lib/aspose_words_cloud/models/bookmark.rb +226 -227
  10. data/lib/aspose_words_cloud/models/bookmark_data.rb +217 -217
  11. data/lib/aspose_words_cloud/models/bookmark_response.rb +216 -217
  12. data/lib/aspose_words_cloud/models/bookmarks.rb +218 -219
  13. data/lib/aspose_words_cloud/models/bookmarks_outline_level_data.rb +217 -222
  14. data/lib/aspose_words_cloud/models/bookmarks_response.rb +216 -217
  15. data/lib/aspose_words_cloud/models/border.rb +318 -320
  16. data/lib/aspose_words_cloud/models/border_response.rb +216 -217
  17. data/lib/aspose_words_cloud/models/borders_collection.rb +218 -219
  18. data/lib/aspose_words_cloud/models/borders_response.rb +216 -217
  19. data/lib/aspose_words_cloud/models/classification_response.rb +239 -239
  20. data/lib/aspose_words_cloud/models/classification_result.rb +217 -222
  21. data/lib/aspose_words_cloud/models/comment.rb +273 -277
  22. data/lib/aspose_words_cloud/models/comment_base.rb +255 -0
  23. data/lib/aspose_words_cloud/models/comment_insert.rb +255 -0
  24. data/lib/aspose_words_cloud/models/comment_link.rb +206 -207
  25. data/lib/aspose_words_cloud/models/comment_response.rb +216 -217
  26. data/lib/aspose_words_cloud/models/comment_update.rb +255 -0
  27. data/lib/aspose_words_cloud/models/comments_collection.rb +218 -219
  28. data/lib/aspose_words_cloud/models/comments_response.rb +216 -217
  29. data/lib/aspose_words_cloud/models/compare_data.rb +236 -227
  30. data/lib/aspose_words_cloud/models/compare_options.rb +324 -0
  31. data/lib/aspose_words_cloud/models/doc_save_options_data.rb +317 -317
  32. data/lib/aspose_words_cloud/models/document.rb +295 -311
  33. data/lib/aspose_words_cloud/models/document_entry.rb +217 -217
  34. data/lib/aspose_words_cloud/models/document_entry_list.rb +209 -209
  35. data/lib/aspose_words_cloud/models/document_position.rb +216 -217
  36. data/lib/aspose_words_cloud/models/document_properties.rb +218 -219
  37. data/lib/aspose_words_cloud/models/document_properties_response.rb +216 -217
  38. data/lib/aspose_words_cloud/models/document_property.rb +236 -237
  39. data/lib/aspose_words_cloud/models/document_property_base.rb +207 -0
  40. data/lib/aspose_words_cloud/models/document_property_create_or_update.rb +207 -0
  41. data/lib/aspose_words_cloud/models/document_property_response.rb +216 -217
  42. data/lib/aspose_words_cloud/models/document_response.rb +216 -217
  43. data/lib/aspose_words_cloud/models/document_stat_data.rb +248 -264
  44. data/lib/aspose_words_cloud/models/downsample_options_data.rb +227 -227
  45. data/lib/aspose_words_cloud/models/drawing_object.rb +385 -388
  46. data/lib/aspose_words_cloud/models/drawing_object_collection.rb +218 -219
  47. data/lib/aspose_words_cloud/models/drawing_object_link.rb +216 -217
  48. data/lib/aspose_words_cloud/models/drawing_object_response.rb +216 -217
  49. data/lib/aspose_words_cloud/models/drawing_objects_response.rb +216 -217
  50. data/lib/aspose_words_cloud/models/emf_save_options_data.rb +475 -477
  51. data/lib/aspose_words_cloud/models/epub_save_options_data.rb +746 -746
  52. data/lib/aspose_words_cloud/models/error.rb +236 -237
  53. data/lib/aspose_words_cloud/models/error_details.rb +217 -222
  54. data/lib/aspose_words_cloud/models/field.rb +246 -247
  55. data/lib/aspose_words_cloud/models/field_base.rb +217 -0
  56. data/lib/aspose_words_cloud/models/field_collection.rb +218 -219
  57. data/lib/aspose_words_cloud/models/field_insert.rb +217 -0
  58. data/lib/aspose_words_cloud/models/field_link.rb +226 -227
  59. data/lib/aspose_words_cloud/models/field_names.rb +218 -219
  60. data/lib/aspose_words_cloud/models/field_names_response.rb +216 -217
  61. data/lib/aspose_words_cloud/models/field_response.rb +216 -217
  62. data/lib/aspose_words_cloud/models/field_update.rb +217 -0
  63. data/lib/aspose_words_cloud/models/fields_response.rb +216 -217
  64. data/lib/aspose_words_cloud/models/file_link.rb +237 -237
  65. data/lib/aspose_words_cloud/models/files_list.rb +209 -209
  66. data/lib/aspose_words_cloud/models/files_upload_result.rb +221 -221
  67. data/lib/aspose_words_cloud/models/fixed_page_save_options_data.rb +346 -347
  68. data/lib/aspose_words_cloud/models/font.rb +671 -676
  69. data/lib/aspose_words_cloud/models/font_info.rb +237 -237
  70. data/lib/aspose_words_cloud/models/font_response.rb +216 -217
  71. data/lib/aspose_words_cloud/models/footnote.rb +301 -304
  72. data/lib/aspose_words_cloud/models/footnote_base.rb +273 -0
  73. data/lib/aspose_words_cloud/models/footnote_collection.rb +218 -219
  74. data/lib/aspose_words_cloud/models/footnote_insert.rb +273 -0
  75. data/lib/aspose_words_cloud/models/footnote_link.rb +216 -217
  76. data/lib/aspose_words_cloud/models/footnote_response.rb +216 -217
  77. data/lib/aspose_words_cloud/models/footnote_update.rb +273 -0
  78. data/lib/aspose_words_cloud/models/footnotes_response.rb +216 -217
  79. data/lib/aspose_words_cloud/models/footnotes_stat_data.rb +217 -227
  80. data/lib/aspose_words_cloud/models/form_field.rb +306 -307
  81. data/lib/aspose_words_cloud/models/form_field_checkbox.rb +336 -337
  82. data/lib/aspose_words_cloud/models/form_field_collection.rb +218 -219
  83. data/lib/aspose_words_cloud/models/form_field_drop_down.rb +328 -329
  84. data/lib/aspose_words_cloud/models/form_field_response.rb +216 -217
  85. data/lib/aspose_words_cloud/models/form_field_text_input.rb +383 -384
  86. data/lib/aspose_words_cloud/models/form_fields_response.rb +216 -217
  87. data/lib/aspose_words_cloud/models/gif_save_options_data.rb +475 -477
  88. data/lib/aspose_words_cloud/models/graphics_quality_options_data.rb +357 -358
  89. data/lib/aspose_words_cloud/models/header_footer.rb +283 -286
  90. data/lib/aspose_words_cloud/models/header_footer_link.rb +253 -254
  91. data/lib/aspose_words_cloud/models/header_footer_link_collection.rb +218 -219
  92. data/lib/aspose_words_cloud/models/header_footer_response.rb +216 -217
  93. data/lib/aspose_words_cloud/models/header_footers_response.rb +216 -217
  94. data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +476 -477
  95. data/lib/aspose_words_cloud/models/html_save_options_data.rb +736 -736
  96. data/lib/aspose_words_cloud/models/hyperlink.rb +226 -227
  97. data/lib/aspose_words_cloud/models/hyperlink_response.rb +216 -217
  98. data/lib/aspose_words_cloud/models/hyperlinks.rb +218 -219
  99. data/lib/aspose_words_cloud/models/hyperlinks_response.rb +216 -217
  100. data/lib/aspose_words_cloud/models/image_save_options_data.rb +475 -477
  101. data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +475 -477
  102. data/lib/aspose_words_cloud/models/link.rb +237 -237
  103. data/lib/aspose_words_cloud/models/link_element.rb +206 -207
  104. data/lib/aspose_words_cloud/models/load_web_document_data.rb +216 -217
  105. data/lib/aspose_words_cloud/models/metafile_rendering_options_data.rb +247 -247
  106. data/lib/aspose_words_cloud/models/mhtml_save_options_data.rb +746 -746
  107. data/lib/aspose_words_cloud/models/modification_operation_result.rb +215 -217
  108. data/lib/aspose_words_cloud/models/node_link.rb +216 -217
  109. data/lib/aspose_words_cloud/models/odt_save_options_data.rb +344 -344
  110. data/lib/aspose_words_cloud/models/office_math_link.rb +216 -217
  111. data/lib/aspose_words_cloud/models/office_math_object.rb +324 -326
  112. data/lib/aspose_words_cloud/models/office_math_object_response.rb +216 -217
  113. data/lib/aspose_words_cloud/models/office_math_objects_collection.rb +218 -219
  114. data/lib/aspose_words_cloud/models/office_math_objects_response.rb +216 -217
  115. data/lib/aspose_words_cloud/models/ooxml_save_options_data.rb +307 -307
  116. data/lib/aspose_words_cloud/models/outline_options_data.rb +259 -259
  117. data/lib/aspose_words_cloud/models/page_number.rb +237 -247
  118. data/lib/aspose_words_cloud/models/page_setup.rb +645 -646
  119. data/lib/aspose_words_cloud/models/page_stat_data.rb +236 -252
  120. data/lib/aspose_words_cloud/models/paragraph.rb +228 -229
  121. data/lib/aspose_words_cloud/models/paragraph_format.rb +567 -568
  122. data/lib/aspose_words_cloud/models/paragraph_format_response.rb +216 -217
  123. data/lib/aspose_words_cloud/models/paragraph_insert.rb +207 -207
  124. data/lib/aspose_words_cloud/models/paragraph_link.rb +226 -227
  125. data/lib/aspose_words_cloud/models/paragraph_link_collection.rb +218 -219
  126. data/lib/aspose_words_cloud/models/paragraph_link_collection_response.rb +216 -217
  127. data/lib/aspose_words_cloud/models/paragraph_response.rb +216 -217
  128. data/lib/aspose_words_cloud/models/pcl_save_options_data.rb +366 -367
  129. data/lib/aspose_words_cloud/models/pdf_digital_signature_details_data.rb +247 -247
  130. data/lib/aspose_words_cloud/models/pdf_encryption_details_data.rb +237 -237
  131. data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +619 -624
  132. data/lib/aspose_words_cloud/models/png_save_options_data.rb +475 -477
  133. data/lib/aspose_words_cloud/models/preferred_width.rb +254 -259
  134. data/lib/aspose_words_cloud/models/protection_data.rb +207 -207
  135. data/lib/aspose_words_cloud/models/protection_data_response.rb +225 -227
  136. data/lib/aspose_words_cloud/models/protection_request.rb +227 -227
  137. data/lib/aspose_words_cloud/models/ps_save_options_data.rb +356 -357
  138. data/lib/aspose_words_cloud/models/range_document.rb +207 -207
  139. data/lib/aspose_words_cloud/models/range_text_response.rb +217 -217
  140. data/lib/aspose_words_cloud/models/replace_range.rb +254 -254
  141. data/lib/aspose_words_cloud/models/replace_text_parameters.rb +247 -262
  142. data/lib/aspose_words_cloud/models/replace_text_response.rb +226 -227
  143. data/lib/aspose_words_cloud/models/requests/AcceptAllRevisionsRequest.rb +65 -65
  144. data/lib/aspose_words_cloud/models/requests/AppendDocumentRequest.rb +77 -77
  145. data/lib/aspose_words_cloud/models/requests/ClassifyDocumentRequest.rb +69 -69
  146. data/lib/aspose_words_cloud/models/requests/ClassifyRequest.rb +49 -49
  147. data/lib/aspose_words_cloud/models/requests/CompareDocumentRequest.rb +69 -69
  148. data/lib/aspose_words_cloud/models/requests/ConvertDocumentRequest.rb +65 -65
  149. data/lib/aspose_words_cloud/models/requests/CopyFileRequest.rb +61 -61
  150. data/lib/aspose_words_cloud/models/requests/CopyFolderRequest.rb +57 -57
  151. data/lib/aspose_words_cloud/models/requests/CreateDocumentRequest.rb +53 -53
  152. data/lib/aspose_words_cloud/models/requests/CreateFolderRequest.rb +49 -49
  153. data/lib/aspose_words_cloud/models/requests/CreateOrUpdateDocumentPropertyRequest.rb +81 -81
  154. data/lib/aspose_words_cloud/models/requests/DeleteBorderRequest.rb +81 -81
  155. data/lib/aspose_words_cloud/models/requests/DeleteBordersRequest.rb +77 -77
  156. data/lib/aspose_words_cloud/models/requests/DeleteCommentRequest.rb +77 -77
  157. data/lib/aspose_words_cloud/models/requests/DeleteDocumentPropertyRequest.rb +77 -77
  158. data/lib/aspose_words_cloud/models/requests/DeleteDrawingObjectRequest.rb +81 -81
  159. data/lib/aspose_words_cloud/models/requests/DeleteDrawingObjectWithoutNodePathRequest.rb +77 -77
  160. data/lib/aspose_words_cloud/models/requests/DeleteFieldRequest.rb +81 -81
  161. data/lib/aspose_words_cloud/models/requests/DeleteFieldWithoutNodePathRequest.rb +77 -77
  162. data/lib/aspose_words_cloud/models/requests/DeleteFieldsRequest.rb +77 -77
  163. data/lib/aspose_words_cloud/models/requests/DeleteFieldsWithoutNodePathRequest.rb +73 -73
  164. data/lib/aspose_words_cloud/models/requests/DeleteFileRequest.rb +53 -53
  165. data/lib/aspose_words_cloud/models/requests/DeleteFolderRequest.rb +53 -53
  166. data/lib/aspose_words_cloud/models/requests/DeleteFootnoteRequest.rb +81 -81
  167. data/lib/aspose_words_cloud/models/requests/DeleteFootnoteWithoutNodePathRequest.rb +77 -77
  168. data/lib/aspose_words_cloud/models/requests/DeleteFormFieldRequest.rb +81 -81
  169. data/lib/aspose_words_cloud/models/requests/DeleteFormFieldWithoutNodePathRequest.rb +77 -77
  170. data/lib/aspose_words_cloud/models/requests/DeleteHeaderFooterRequest.rb +81 -81
  171. data/lib/aspose_words_cloud/models/requests/DeleteHeadersFootersRequest.rb +81 -81
  172. data/lib/aspose_words_cloud/models/requests/DeleteMacrosRequest.rb +73 -73
  173. data/lib/aspose_words_cloud/models/requests/DeleteOfficeMathObjectRequest.rb +81 -81
  174. data/lib/aspose_words_cloud/models/requests/DeleteOfficeMathObjectWithoutNodePathRequest.rb +77 -77
  175. data/lib/aspose_words_cloud/models/requests/DeleteParagraphRequest.rb +81 -81
  176. data/lib/aspose_words_cloud/models/requests/DeleteParagraphWithoutNodePathRequest.rb +77 -77
  177. data/lib/aspose_words_cloud/models/requests/DeleteRunRequest.rb +81 -81
  178. data/lib/aspose_words_cloud/models/requests/DeleteSectionRequest.rb +77 -77
  179. data/lib/aspose_words_cloud/models/requests/DeleteTableCellRequest.rb +81 -81
  180. data/lib/aspose_words_cloud/models/requests/DeleteTableRequest.rb +81 -81
  181. data/lib/aspose_words_cloud/models/requests/DeleteTableRowRequest.rb +81 -81
  182. data/lib/aspose_words_cloud/models/requests/DeleteTableWithoutNodePathRequest.rb +77 -77
  183. data/lib/aspose_words_cloud/models/requests/DeleteWatermarkRequest.rb +73 -73
  184. data/lib/aspose_words_cloud/models/requests/DownloadFileRequest.rb +53 -53
  185. data/lib/aspose_words_cloud/models/requests/ExecuteMailMergeOnlineRequest.rb +61 -61
  186. data/lib/aspose_words_cloud/models/requests/ExecuteMailMergeRequest.rb +85 -85
  187. data/lib/aspose_words_cloud/models/requests/GetAvailableFontsRequest.rb +45 -45
  188. data/lib/aspose_words_cloud/models/requests/GetBookmarkByNameRequest.rb +65 -65
  189. data/lib/aspose_words_cloud/models/requests/GetBookmarksRequest.rb +61 -61
  190. data/lib/aspose_words_cloud/models/requests/GetBorderRequest.rb +69 -69
  191. data/lib/aspose_words_cloud/models/requests/GetBordersRequest.rb +65 -65
  192. data/lib/aspose_words_cloud/models/requests/GetCommentRequest.rb +65 -65
  193. data/lib/aspose_words_cloud/models/requests/GetCommentsRequest.rb +61 -61
  194. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectByIndexRequest.rb +69 -69
  195. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectByIndexWithoutNodePathRequest.rb +65 -65
  196. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectImageDataRequest.rb +69 -69
  197. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectImageDataWithoutNodePathRequest.rb +65 -65
  198. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectOleDataRequest.rb +69 -69
  199. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectOleDataWithoutNodePathRequest.rb +65 -65
  200. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectsRequest.rb +65 -65
  201. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectsWithoutNodePathRequest.rb +61 -61
  202. data/lib/aspose_words_cloud/models/requests/GetDocumentFieldNamesOnlineRequest.rb +49 -49
  203. data/lib/aspose_words_cloud/models/requests/GetDocumentFieldNamesRequest.rb +65 -65
  204. data/lib/aspose_words_cloud/models/requests/GetDocumentHyperlinkByIndexRequest.rb +65 -65
  205. data/lib/aspose_words_cloud/models/requests/GetDocumentHyperlinksRequest.rb +61 -61
  206. data/lib/aspose_words_cloud/models/requests/GetDocumentPropertiesRequest.rb +61 -61
  207. data/lib/aspose_words_cloud/models/requests/GetDocumentPropertyRequest.rb +65 -65
  208. data/lib/aspose_words_cloud/models/requests/GetDocumentProtectionRequest.rb +61 -61
  209. data/lib/aspose_words_cloud/models/requests/GetDocumentRequest.rb +61 -61
  210. data/lib/aspose_words_cloud/models/requests/GetDocumentStatisticsRequest.rb +73 -73
  211. data/lib/aspose_words_cloud/models/requests/GetDocumentWithFormatRequest.rb +73 -73
  212. data/lib/aspose_words_cloud/models/requests/GetFieldRequest.rb +69 -69
  213. data/lib/aspose_words_cloud/models/requests/GetFieldWithoutNodePathRequest.rb +65 -65
  214. data/lib/aspose_words_cloud/models/requests/GetFieldsRequest.rb +65 -65
  215. data/lib/aspose_words_cloud/models/requests/GetFieldsWithoutNodePathRequest.rb +61 -61
  216. data/lib/aspose_words_cloud/models/requests/GetFilesListRequest.rb +49 -49
  217. data/lib/aspose_words_cloud/models/requests/GetFootnoteRequest.rb +69 -69
  218. data/lib/aspose_words_cloud/models/requests/GetFootnoteWithoutNodePathRequest.rb +65 -65
  219. data/lib/aspose_words_cloud/models/requests/GetFootnotesRequest.rb +65 -65
  220. data/lib/aspose_words_cloud/models/requests/GetFootnotesWithoutNodePathRequest.rb +61 -61
  221. data/lib/aspose_words_cloud/models/requests/GetFormFieldRequest.rb +69 -69
  222. data/lib/aspose_words_cloud/models/requests/GetFormFieldWithoutNodePathRequest.rb +65 -65
  223. data/lib/aspose_words_cloud/models/requests/GetFormFieldsRequest.rb +65 -65
  224. data/lib/aspose_words_cloud/models/requests/GetFormFieldsWithoutNodePathRequest.rb +61 -61
  225. data/lib/aspose_words_cloud/models/requests/GetHeaderFooterOfSectionRequest.rb +73 -73
  226. data/lib/aspose_words_cloud/models/requests/GetHeaderFooterRequest.rb +69 -69
  227. data/lib/aspose_words_cloud/models/requests/GetHeaderFootersRequest.rb +69 -69
  228. data/lib/aspose_words_cloud/models/requests/GetOfficeMathObjectRequest.rb +69 -69
  229. data/lib/aspose_words_cloud/models/requests/GetOfficeMathObjectWithoutNodePathRequest.rb +65 -65
  230. data/lib/aspose_words_cloud/models/requests/GetOfficeMathObjectsRequest.rb +65 -65
  231. data/lib/aspose_words_cloud/models/requests/GetOfficeMathObjectsWithoutNodePathRequest.rb +61 -61
  232. data/lib/aspose_words_cloud/models/requests/GetParagraphFormatRequest.rb +69 -69
  233. data/lib/aspose_words_cloud/models/requests/GetParagraphFormatWithoutNodePathRequest.rb +65 -65
  234. data/lib/aspose_words_cloud/models/requests/GetParagraphRequest.rb +69 -69
  235. data/lib/aspose_words_cloud/models/requests/GetParagraphWithoutNodePathRequest.rb +65 -65
  236. data/lib/aspose_words_cloud/models/requests/GetParagraphsRequest.rb +65 -65
  237. data/lib/aspose_words_cloud/models/requests/GetParagraphsWithoutNodePathRequest.rb +61 -61
  238. data/lib/aspose_words_cloud/models/requests/GetRangeTextRequest.rb +69 -69
  239. data/lib/aspose_words_cloud/models/requests/GetRunFontRequest.rb +69 -69
  240. data/lib/aspose_words_cloud/models/requests/GetRunRequest.rb +69 -69
  241. data/lib/aspose_words_cloud/models/requests/GetRunsRequest.rb +65 -65
  242. data/lib/aspose_words_cloud/models/requests/GetSectionPageSetupRequest.rb +65 -65
  243. data/lib/aspose_words_cloud/models/requests/GetSectionRequest.rb +65 -65
  244. data/lib/aspose_words_cloud/models/requests/GetSectionsRequest.rb +61 -61
  245. data/lib/aspose_words_cloud/models/requests/GetTableCellFormatRequest.rb +69 -69
  246. data/lib/aspose_words_cloud/models/requests/GetTableCellRequest.rb +69 -69
  247. data/lib/aspose_words_cloud/models/requests/GetTablePropertiesRequest.rb +69 -69
  248. data/lib/aspose_words_cloud/models/requests/GetTablePropertiesWithoutNodePathRequest.rb +65 -65
  249. data/lib/aspose_words_cloud/models/requests/GetTableRequest.rb +69 -69
  250. data/lib/aspose_words_cloud/models/requests/GetTableRowFormatRequest.rb +69 -69
  251. data/lib/aspose_words_cloud/models/requests/GetTableRowRequest.rb +69 -69
  252. data/lib/aspose_words_cloud/models/requests/GetTableWithoutNodePathRequest.rb +65 -65
  253. data/lib/aspose_words_cloud/models/requests/GetTablesRequest.rb +65 -65
  254. data/lib/aspose_words_cloud/models/requests/GetTablesWithoutNodePathRequest.rb +61 -61
  255. data/lib/aspose_words_cloud/models/requests/InsertCommentRequest.rb +77 -77
  256. data/lib/aspose_words_cloud/models/requests/InsertDrawingObjectRequest.rb +85 -85
  257. data/lib/aspose_words_cloud/models/requests/InsertDrawingObjectWithoutNodePathRequest.rb +81 -81
  258. data/lib/aspose_words_cloud/models/requests/InsertFieldRequest.rb +85 -85
  259. data/lib/aspose_words_cloud/models/requests/InsertFieldWithoutNodePathRequest.rb +81 -81
  260. data/lib/aspose_words_cloud/models/requests/InsertFootnoteRequest.rb +81 -81
  261. data/lib/aspose_words_cloud/models/requests/InsertFootnoteWithoutNodePathRequest.rb +77 -77
  262. data/lib/aspose_words_cloud/models/requests/InsertFormFieldRequest.rb +85 -85
  263. data/lib/aspose_words_cloud/models/requests/InsertFormFieldWithoutNodePathRequest.rb +81 -81
  264. data/lib/aspose_words_cloud/models/requests/InsertHeaderFooterRequest.rb +81 -81
  265. data/lib/aspose_words_cloud/models/requests/InsertPageNumbersRequest.rb +77 -77
  266. data/lib/aspose_words_cloud/models/requests/InsertParagraphRequest.rb +85 -85
  267. data/lib/aspose_words_cloud/models/requests/InsertRunRequest.rb +85 -85
  268. data/lib/aspose_words_cloud/models/requests/InsertTableCellRequest.rb +81 -81
  269. data/lib/aspose_words_cloud/models/requests/InsertTableRequest.rb +81 -81
  270. data/lib/aspose_words_cloud/models/requests/InsertTableRowRequest.rb +81 -81
  271. data/lib/aspose_words_cloud/models/requests/InsertTableWithoutNodePathRequest.rb +77 -77
  272. data/lib/aspose_words_cloud/models/requests/InsertWatermarkImageRequest.rb +85 -85
  273. data/lib/aspose_words_cloud/models/requests/InsertWatermarkTextRequest.rb +77 -77
  274. data/lib/aspose_words_cloud/models/requests/LoadWebDocumentRequest.rb +49 -49
  275. data/lib/aspose_words_cloud/models/requests/MoveFileRequest.rb +61 -61
  276. data/lib/aspose_words_cloud/models/requests/MoveFolderRequest.rb +57 -57
  277. data/lib/aspose_words_cloud/models/requests/ProtectDocumentRequest.rb +69 -69
  278. data/lib/aspose_words_cloud/models/requests/RejectAllRevisionsRequest.rb +65 -65
  279. data/lib/aspose_words_cloud/models/requests/RemoveRangeRequest.rb +73 -73
  280. data/lib/aspose_words_cloud/models/requests/RenderDrawingObjectRequest.rb +77 -77
  281. data/lib/aspose_words_cloud/models/requests/RenderDrawingObjectWithoutNodePathRequest.rb +73 -73
  282. data/lib/aspose_words_cloud/models/requests/RenderMathObjectRequest.rb +77 -77
  283. data/lib/aspose_words_cloud/models/requests/RenderMathObjectWithoutNodePathRequest.rb +73 -73
  284. data/lib/aspose_words_cloud/models/requests/RenderPageRequest.rb +73 -73
  285. data/lib/aspose_words_cloud/models/requests/RenderParagraphRequest.rb +77 -77
  286. data/lib/aspose_words_cloud/models/requests/RenderParagraphWithoutNodePathRequest.rb +73 -73
  287. data/lib/aspose_words_cloud/models/requests/RenderTableRequest.rb +77 -77
  288. data/lib/aspose_words_cloud/models/requests/RenderTableWithoutNodePathRequest.rb +73 -73
  289. data/lib/aspose_words_cloud/models/requests/ReplaceTextRequest.rb +77 -77
  290. data/lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb +77 -77
  291. data/lib/aspose_words_cloud/models/requests/ResetCacheRequest.rb +36 -36
  292. data/lib/aspose_words_cloud/models/requests/SaveAsRangeRequest.rb +73 -73
  293. data/lib/aspose_words_cloud/models/requests/SaveAsRequest.rb +69 -69
  294. data/lib/aspose_words_cloud/models/requests/SaveAsTiffRequest.rb +137 -137
  295. data/lib/aspose_words_cloud/models/requests/SearchRequest.rb +65 -65
  296. data/lib/aspose_words_cloud/models/requests/SplitDocumentRequest.rb +85 -85
  297. data/lib/aspose_words_cloud/models/requests/UnprotectDocumentRequest.rb +69 -69
  298. data/lib/aspose_words_cloud/models/requests/UpdateBookmarkRequest.rb +81 -81
  299. data/lib/aspose_words_cloud/models/requests/UpdateBorderRequest.rb +85 -85
  300. data/lib/aspose_words_cloud/models/requests/UpdateCommentRequest.rb +81 -81
  301. data/lib/aspose_words_cloud/models/requests/UpdateDrawingObjectRequest.rb +89 -89
  302. data/lib/aspose_words_cloud/models/requests/UpdateDrawingObjectWithoutNodePathRequest.rb +85 -85
  303. data/lib/aspose_words_cloud/models/requests/UpdateFieldRequest.rb +85 -85
  304. data/lib/aspose_words_cloud/models/requests/UpdateFieldsRequest.rb +65 -65
  305. data/lib/aspose_words_cloud/models/requests/UpdateFootnoteRequest.rb +85 -85
  306. data/lib/aspose_words_cloud/models/requests/UpdateFootnoteWithoutNodePathRequest.rb +81 -81
  307. data/lib/aspose_words_cloud/models/requests/UpdateFormFieldRequest.rb +85 -85
  308. data/lib/aspose_words_cloud/models/requests/UpdateFormFieldWithoutNodePathRequest.rb +81 -81
  309. data/lib/aspose_words_cloud/models/requests/UpdateParagraphFormatRequest.rb +85 -85
  310. data/lib/aspose_words_cloud/models/requests/UpdateRunFontRequest.rb +85 -85
  311. data/lib/aspose_words_cloud/models/requests/UpdateRunRequest.rb +85 -85
  312. data/lib/aspose_words_cloud/models/requests/UpdateSectionPageSetupRequest.rb +81 -81
  313. data/lib/aspose_words_cloud/models/requests/UpdateTableCellFormatRequest.rb +85 -85
  314. data/lib/aspose_words_cloud/models/requests/UpdateTablePropertiesRequest.rb +85 -85
  315. data/lib/aspose_words_cloud/models/requests/UpdateTablePropertiesWithoutNodePathRequest.rb +81 -81
  316. data/lib/aspose_words_cloud/models/requests/UpdateTableRowFormatRequest.rb +85 -85
  317. data/lib/aspose_words_cloud/models/requests/UploadFileRequest.rb +53 -53
  318. data/lib/aspose_words_cloud/models/response_error.rb +246 -247
  319. data/lib/aspose_words_cloud/models/revisions_modification_response.rb +216 -217
  320. data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +317 -317
  321. data/lib/aspose_words_cloud/models/run.rb +226 -227
  322. data/lib/aspose_words_cloud/models/run_base.rb +207 -0
  323. data/lib/aspose_words_cloud/models/run_insert.rb +207 -0
  324. data/lib/aspose_words_cloud/models/run_link.rb +226 -227
  325. data/lib/aspose_words_cloud/models/run_response.rb +216 -217
  326. data/lib/aspose_words_cloud/models/run_update.rb +207 -0
  327. data/lib/aspose_words_cloud/models/runs.rb +218 -219
  328. data/lib/aspose_words_cloud/models/runs_response.rb +216 -217
  329. data/lib/aspose_words_cloud/models/save_options_data.rb +277 -277
  330. data/lib/aspose_words_cloud/models/save_response.rb +216 -217
  331. data/lib/aspose_words_cloud/models/save_result.rb +227 -229
  332. data/lib/aspose_words_cloud/models/search_response.rb +226 -227
  333. data/lib/aspose_words_cloud/models/search_result.rb +215 -217
  334. data/lib/aspose_words_cloud/models/search_results_collection.rb +218 -219
  335. data/lib/aspose_words_cloud/models/section.rb +254 -259
  336. data/lib/aspose_words_cloud/models/section_link.rb +216 -217
  337. data/lib/aspose_words_cloud/models/section_link_collection.rb +218 -219
  338. data/lib/aspose_words_cloud/models/section_link_collection_response.rb +216 -217
  339. data/lib/aspose_words_cloud/models/section_page_setup_response.rb +216 -217
  340. data/lib/aspose_words_cloud/models/section_response.rb +216 -217
  341. data/lib/aspose_words_cloud/models/split_document_response.rb +216 -217
  342. data/lib/aspose_words_cloud/models/split_document_result.rb +227 -229
  343. data/lib/aspose_words_cloud/models/stat_data_response.rb +225 -227
  344. data/lib/aspose_words_cloud/models/storage_file.rb +247 -257
  345. data/lib/aspose_words_cloud/models/story_child_nodes.rb +209 -209
  346. data/lib/aspose_words_cloud/models/string_format_data.rb +348 -348
  347. data/lib/aspose_words_cloud/models/svg_save_options_data.rb +406 -407
  348. data/lib/aspose_words_cloud/models/table.rb +237 -239
  349. data/lib/aspose_words_cloud/models/table_cell.rb +228 -229
  350. data/lib/aspose_words_cloud/models/table_cell_format.rb +410 -412
  351. data/lib/aspose_words_cloud/models/table_cell_format_response.rb +216 -217
  352. data/lib/aspose_words_cloud/models/table_cell_insert.rb +207 -207
  353. data/lib/aspose_words_cloud/models/table_cell_response.rb +216 -217
  354. data/lib/aspose_words_cloud/models/table_insert.rb +226 -237
  355. data/lib/aspose_words_cloud/models/table_link.rb +216 -217
  356. data/lib/aspose_words_cloud/models/table_link_collection.rb +218 -219
  357. data/lib/aspose_words_cloud/models/table_link_collection_response.rb +216 -217
  358. data/lib/aspose_words_cloud/models/table_properties.rb +430 -432
  359. data/lib/aspose_words_cloud/models/table_properties_response.rb +216 -217
  360. data/lib/aspose_words_cloud/models/table_response.rb +216 -217
  361. data/lib/aspose_words_cloud/models/table_row.rb +237 -239
  362. data/lib/aspose_words_cloud/models/table_row_format.rb +283 -284
  363. data/lib/aspose_words_cloud/models/table_row_format_response.rb +216 -217
  364. data/lib/aspose_words_cloud/models/table_row_insert.rb +217 -222
  365. data/lib/aspose_words_cloud/models/table_row_response.rb +216 -217
  366. data/lib/aspose_words_cloud/models/text_save_options_data.rb +384 -384
  367. data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +505 -507
  368. data/lib/aspose_words_cloud/models/watermark_text.rb +217 -222
  369. data/lib/aspose_words_cloud/models/word_ml_save_options_data.rb +287 -287
  370. data/lib/aspose_words_cloud/models/words_api_error_response.rb +216 -217
  371. data/lib/aspose_words_cloud/models/words_api_link.rb +237 -237
  372. data/lib/aspose_words_cloud/models/words_response.rb +207 -207
  373. data/lib/aspose_words_cloud/models/xaml_fixed_save_options_data.rb +366 -367
  374. data/lib/aspose_words_cloud/models/xaml_flow_save_options_data.rb +297 -297
  375. data/lib/aspose_words_cloud/models/xml_color.rb +217 -217
  376. data/lib/aspose_words_cloud/models/xps_save_options_data.rb +385 -387
  377. data/lib/aspose_words_cloud/version.rb +29 -29
  378. metadata +19 -5
@@ -1,507 +1,505 @@
1
-
2
- require 'date'
3
-
4
- module AsposeWordsCloud
5
- #
6
- # --------------------------------------------------------------------------------------------------------------------
7
- # <copyright company="Aspose" file="TiffSaveOptionsData.rb">
8
- # Copyright (c) 2019 Aspose.Words for Cloud
9
- # </copyright>
10
- # <summary>
11
- # Permission is hereby granted, free of charge, to any person obtaining a copy
12
- # of this software and associated documentation files (the "Software"), to deal
13
- # in the Software without restriction, including without limitation the rights
14
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- # copies of the Software, and to permit persons to whom the Software is
16
- # furnished to do so, subject to the following conditions:
17
- #
18
- # The above copyright notice and this permission notice shall be included in all
19
- # copies or substantial portions of the Software.
20
- #
21
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- # SOFTWARE.
28
- # </summary>
29
- # --------------------------------------------------------------------------------------------------------------------
30
- #
31
-
32
- # Container class for tiff save options.
33
- class TiffSaveOptionsData
34
- # Gets or sets format of save.
35
- attr_accessor :save_format
36
-
37
- # Gets or sets name of destination file.
38
- attr_accessor :file_name
39
-
40
- # Gets or sets a value determining how DrawingML shapes are rendered. { Fallback | DrawingML }.
41
- attr_accessor :dml_rendering_mode
42
-
43
- # Gets or sets a value determining how DrawingML effects are rendered. { Simplified | None | Fine }.
44
- attr_accessor :dml_effects_rendering_mode
45
-
46
- # Gets or sets controls zip output or not. Default value is false.
47
- attr_accessor :zip_output
48
-
49
- # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastSavedTime property is updated before saving.
50
- attr_accessor :update_last_saved_time_property
51
-
52
- # Gets or sets value determining whether content of is updated before saving.
53
- attr_accessor :update_sdt_content
54
-
55
- # Gets or sets a value determining if fields should be updated before saving the document to a fixed page format. Default value for this property is. true
56
- attr_accessor :update_fields
57
-
58
- # Gets or sets a value determining how colors are rendered. { Normal | Grayscale}.
59
- attr_accessor :color_mode
60
-
61
- # Gets or sets determines the quality of the JPEG images inside PDF document.
62
- attr_accessor :jpeg_quality
63
-
64
- # Gets or sets allows to specify metafile rendering options.
65
- attr_accessor :metafile_rendering_options
66
-
67
- # Gets or sets indicates the symbol set that is used to represent numbers while rendering to fixed page formats.
68
- attr_accessor :numeral_format
69
-
70
- # Gets or sets flag indicates whether it is required to optimize output of XPS. If this flag is set redundant nested canvases and empty canvases are removed, also neighbor glyphs with the same formatting are concatenated. Note: The accuracy of the content display may be affected if this property is set to true. Default is false.
71
- attr_accessor :optimize_output
72
-
73
- # Gets or sets determines number of pages to render.
74
- attr_accessor :page_count
75
-
76
- # Gets or sets determines 0-based index of the first page to render.
77
- attr_accessor :page_index
78
-
79
- # Gets or sets allows to specify additional System.Drawing.Graphics quality options.
80
- attr_accessor :graphics_quality_options
81
-
82
- # Gets or sets the horizontal resolution for the generated images, in dots per inch. This property has effect only when saving to raster image formats. The default value is 96.
83
- attr_accessor :horizontal_resolution
84
-
85
- # Gets or sets brightness of image.
86
- attr_accessor :image_brightness
87
-
88
- # Gets or sets color mode of image.
89
- attr_accessor :image_color_mode
90
-
91
- # Gets or sets contrast of image.
92
- attr_accessor :image_contrast
93
-
94
- # Gets or sets background (paper) color of image.
95
- attr_accessor :paper_color
96
-
97
- # Gets or sets pixel format of image.
98
- attr_accessor :pixel_format
99
-
100
- # Gets or sets both horizontal and vertical resolution for the generated images, in dots per inch. This property has effect only when saving to raster image formats. The default value is 96.
101
- attr_accessor :resolution
102
-
103
- # Gets or sets zoom factor of image.
104
- attr_accessor :scale
105
-
106
- # Gets or sets determine whether or not to use anti-aliasing for rendering.
107
- attr_accessor :use_anti_aliasing
108
-
109
- # Gets or sets a value determining whether to use GDI+ or Aspose.Words metafile renderer when saving to EMF.
110
- attr_accessor :use_gdi_emf_renderer
111
-
112
- # Gets or sets determine whether or not to use high quality (i.e. slow) rendering algorithms.
113
- attr_accessor :use_high_quality_rendering
114
-
115
- # Gets or sets the vertical resolution for the generated images, in dots per inch. This property has effect only when saving to raster image formats. The default value is 96.
116
- attr_accessor :vertical_resolution
117
-
118
- # Gets or sets the threshold that determines the value of the binarization error in the Floyd-Steinberg method. when ImageBinarizationMethod is ImageBinarizationMethod.FloydSteinbergDithering. Default value is 128.
119
- attr_accessor :threshold_for_floyd_steinberg_dithering
120
-
121
- # Gets or sets specifies method used while converting images to 1 bpp format.
122
- attr_accessor :tiff_binarization_method
123
-
124
- # Gets or sets type of compression.
125
- attr_accessor :tiff_compression
126
-
127
-
128
- # Attribute mapping from ruby-style variable name to JSON key.
129
- def self.attribute_map
130
- {
131
- :'save_format' => :'SaveFormat',
132
- :'file_name' => :'FileName',
133
- :'dml_rendering_mode' => :'DmlRenderingMode',
134
- :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
135
- :'zip_output' => :'ZipOutput',
136
- :'update_last_saved_time_property' => :'UpdateLastSavedTimeProperty',
137
- :'update_sdt_content' => :'UpdateSdtContent',
138
- :'update_fields' => :'UpdateFields',
139
- :'color_mode' => :'ColorMode',
140
- :'jpeg_quality' => :'JpegQuality',
141
- :'metafile_rendering_options' => :'MetafileRenderingOptions',
142
- :'numeral_format' => :'NumeralFormat',
143
- :'optimize_output' => :'OptimizeOutput',
144
- :'page_count' => :'PageCount',
145
- :'page_index' => :'PageIndex',
146
- :'graphics_quality_options' => :'GraphicsQualityOptions',
147
- :'horizontal_resolution' => :'HorizontalResolution',
148
- :'image_brightness' => :'ImageBrightness',
149
- :'image_color_mode' => :'ImageColorMode',
150
- :'image_contrast' => :'ImageContrast',
151
- :'paper_color' => :'PaperColor',
152
- :'pixel_format' => :'PixelFormat',
153
- :'resolution' => :'Resolution',
154
- :'scale' => :'Scale',
155
- :'use_anti_aliasing' => :'UseAntiAliasing',
156
- :'use_gdi_emf_renderer' => :'UseGdiEmfRenderer',
157
- :'use_high_quality_rendering' => :'UseHighQualityRendering',
158
- :'vertical_resolution' => :'VerticalResolution',
159
- :'threshold_for_floyd_steinberg_dithering' => :'ThresholdForFloydSteinbergDithering',
160
- :'tiff_binarization_method' => :'TiffBinarizationMethod',
161
- :'tiff_compression' => :'TiffCompression'
162
- }
163
- end
164
-
165
- # Attribute type mapping.
166
- def self.swagger_types
167
- {
168
- :'save_format' => :'String',
169
- :'file_name' => :'String',
170
- :'dml_rendering_mode' => :'String',
171
- :'dml_effects_rendering_mode' => :'String',
172
- :'zip_output' => :'BOOLEAN',
173
- :'update_last_saved_time_property' => :'BOOLEAN',
174
- :'update_sdt_content' => :'BOOLEAN',
175
- :'update_fields' => :'BOOLEAN',
176
- :'color_mode' => :'String',
177
- :'jpeg_quality' => :'Integer',
178
- :'metafile_rendering_options' => :'MetafileRenderingOptionsData',
179
- :'numeral_format' => :'String',
180
- :'optimize_output' => :'BOOLEAN',
181
- :'page_count' => :'Integer',
182
- :'page_index' => :'Integer',
183
- :'graphics_quality_options' => :'GraphicsQualityOptionsData',
184
- :'horizontal_resolution' => :'Float',
185
- :'image_brightness' => :'Float',
186
- :'image_color_mode' => :'String',
187
- :'image_contrast' => :'Float',
188
- :'paper_color' => :'String',
189
- :'pixel_format' => :'String',
190
- :'resolution' => :'Float',
191
- :'scale' => :'Float',
192
- :'use_anti_aliasing' => :'BOOLEAN',
193
- :'use_gdi_emf_renderer' => :'BOOLEAN',
194
- :'use_high_quality_rendering' => :'BOOLEAN',
195
- :'vertical_resolution' => :'Float',
196
- :'threshold_for_floyd_steinberg_dithering' => :'Integer',
197
- :'tiff_binarization_method' => :'String',
198
- :'tiff_compression' => :'String'
199
- }
200
- end
201
-
202
- # Initializes the object
203
- # @param [Hash] attributes Model attributes in the form of hash
204
- def initialize(attributes = {})
205
- return unless attributes.is_a?(Hash)
206
-
207
- # convert string to symbol for hash key
208
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
209
-
210
- if attributes.key?(:'SaveFormat')
211
- self.save_format = attributes[:'SaveFormat']
212
- end
213
-
214
- if attributes.key?(:'FileName')
215
- self.file_name = attributes[:'FileName']
216
- end
217
-
218
- if attributes.key?(:'DmlRenderingMode')
219
- self.dml_rendering_mode = attributes[:'DmlRenderingMode']
220
- end
221
-
222
- if attributes.key?(:'DmlEffectsRenderingMode')
223
- self.dml_effects_rendering_mode = attributes[:'DmlEffectsRenderingMode']
224
- end
225
-
226
- if attributes.key?(:'ZipOutput')
227
- self.zip_output = attributes[:'ZipOutput']
228
- end
229
-
230
- if attributes.key?(:'UpdateLastSavedTimeProperty')
231
- self.update_last_saved_time_property = attributes[:'UpdateLastSavedTimeProperty']
232
- end
233
-
234
- if attributes.key?(:'UpdateSdtContent')
235
- self.update_sdt_content = attributes[:'UpdateSdtContent']
236
- end
237
-
238
- if attributes.key?(:'UpdateFields')
239
- self.update_fields = attributes[:'UpdateFields']
240
- end
241
-
242
- if attributes.key?(:'ColorMode')
243
- self.color_mode = attributes[:'ColorMode']
244
- end
245
-
246
- if attributes.key?(:'JpegQuality')
247
- self.jpeg_quality = attributes[:'JpegQuality']
248
- end
249
-
250
- if attributes.key?(:'MetafileRenderingOptions')
251
- self.metafile_rendering_options = attributes[:'MetafileRenderingOptions']
252
- end
253
-
254
- if attributes.key?(:'NumeralFormat')
255
- self.numeral_format = attributes[:'NumeralFormat']
256
- end
257
-
258
- if attributes.key?(:'OptimizeOutput')
259
- self.optimize_output = attributes[:'OptimizeOutput']
260
- end
261
-
262
- if attributes.key?(:'PageCount')
263
- self.page_count = attributes[:'PageCount']
264
- end
265
-
266
- if attributes.key?(:'PageIndex')
267
- self.page_index = attributes[:'PageIndex']
268
- end
269
-
270
- if attributes.key?(:'GraphicsQualityOptions')
271
- self.graphics_quality_options = attributes[:'GraphicsQualityOptions']
272
- end
273
-
274
- if attributes.key?(:'HorizontalResolution')
275
- self.horizontal_resolution = attributes[:'HorizontalResolution']
276
- end
277
-
278
- if attributes.key?(:'ImageBrightness')
279
- self.image_brightness = attributes[:'ImageBrightness']
280
- end
281
-
282
- if attributes.key?(:'ImageColorMode')
283
- self.image_color_mode = attributes[:'ImageColorMode']
284
- end
285
-
286
- if attributes.key?(:'ImageContrast')
287
- self.image_contrast = attributes[:'ImageContrast']
288
- end
289
-
290
- if attributes.key?(:'PaperColor')
291
- self.paper_color = attributes[:'PaperColor']
292
- end
293
-
294
- if attributes.key?(:'PixelFormat')
295
- self.pixel_format = attributes[:'PixelFormat']
296
- end
297
-
298
- if attributes.key?(:'Resolution')
299
- self.resolution = attributes[:'Resolution']
300
- end
301
-
302
- if attributes.key?(:'Scale')
303
- self.scale = attributes[:'Scale']
304
- end
305
-
306
- if attributes.key?(:'UseAntiAliasing')
307
- self.use_anti_aliasing = attributes[:'UseAntiAliasing']
308
- end
309
-
310
- if attributes.key?(:'UseGdiEmfRenderer')
311
- self.use_gdi_emf_renderer = attributes[:'UseGdiEmfRenderer']
312
- end
313
-
314
- if attributes.key?(:'UseHighQualityRendering')
315
- self.use_high_quality_rendering = attributes[:'UseHighQualityRendering']
316
- end
317
-
318
- if attributes.key?(:'VerticalResolution')
319
- self.vertical_resolution = attributes[:'VerticalResolution']
320
- end
321
-
322
- if attributes.key?(:'ThresholdForFloydSteinbergDithering')
323
- self.threshold_for_floyd_steinberg_dithering = attributes[:'ThresholdForFloydSteinbergDithering']
324
- end
325
-
326
- if attributes.key?(:'TiffBinarizationMethod')
327
- self.tiff_binarization_method = attributes[:'TiffBinarizationMethod']
328
- end
329
-
330
- if attributes.key?(:'TiffCompression')
331
- self.tiff_compression = attributes[:'TiffCompression']
332
- end
333
-
334
- end
335
-
336
- # Show invalid properties with the reasons. Usually used together with valid?
337
- # @return Array for valid properies with the reasons
338
- def list_invalid_properties
339
- invalid_properties = []
340
- return invalid_properties
341
- end
342
-
343
- # Check to see if the all the properties in the model are valid
344
- # @return true if the model is valid
345
- def valid?
346
- return true
347
- end
348
-
349
- # Checks equality by comparing each attribute.
350
- # @param [Object] Object to be compared
351
- def ==(other)
352
- return true if self.equal?(other)
353
- self.class == other.class &&
354
- save_format == other.save_format &&
355
- file_name == other.file_name &&
356
- dml_rendering_mode == other.dml_rendering_mode &&
357
- dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
358
- zip_output == other.zip_output &&
359
- update_last_saved_time_property == other.update_last_saved_time_property &&
360
- update_sdt_content == other.update_sdt_content &&
361
- update_fields == other.update_fields &&
362
- color_mode == other.color_mode &&
363
- jpeg_quality == other.jpeg_quality &&
364
- metafile_rendering_options == other.metafile_rendering_options &&
365
- numeral_format == other.numeral_format &&
366
- optimize_output == other.optimize_output &&
367
- page_count == other.page_count &&
368
- page_index == other.page_index &&
369
- graphics_quality_options == other.graphics_quality_options &&
370
- horizontal_resolution == other.horizontal_resolution &&
371
- image_brightness == other.image_brightness &&
372
- image_color_mode == other.image_color_mode &&
373
- image_contrast == other.image_contrast &&
374
- paper_color == other.paper_color &&
375
- pixel_format == other.pixel_format &&
376
- resolution == other.resolution &&
377
- scale == other.scale &&
378
- use_anti_aliasing == other.use_anti_aliasing &&
379
- use_gdi_emf_renderer == other.use_gdi_emf_renderer &&
380
- use_high_quality_rendering == other.use_high_quality_rendering &&
381
- vertical_resolution == other.vertical_resolution &&
382
- threshold_for_floyd_steinberg_dithering == other.threshold_for_floyd_steinberg_dithering &&
383
- tiff_binarization_method == other.tiff_binarization_method &&
384
- tiff_compression == other.tiff_compression
385
- end
386
-
387
- # @see the `==` method
388
- # @param [Object] Object to be compared
389
- def eql?(other)
390
- self == other
391
- end
392
-
393
- # Calculates hash code according to all attributes.
394
- # @return [Fixnum] Hash code
395
- def hash
396
- [save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, graphics_quality_options, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing, use_gdi_emf_renderer, use_high_quality_rendering, vertical_resolution, threshold_for_floyd_steinberg_dithering, tiff_binarization_method, tiff_compression].hash
397
- end
398
-
399
- # Builds the object from hash
400
- # @param [Hash] attributes Model attributes in the form of hash
401
- # @return [Object] Returns the model itself
402
- def build_from_hash(attributes)
403
- return nil unless attributes.is_a?(Hash)
404
- self.class.swagger_types.each_pair do |key, type|
405
- if type =~ /\AArray<(.*)>/i
406
- # check to ensure the input is an array given that the the attribute
407
- # is documented as an array but the input is not
408
- if attributes[self.class.attribute_map[key]].is_a?(Array)
409
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
410
- end
411
- elsif !attributes[self.class.attribute_map[key]].nil?
412
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
413
- end
414
- # or else data not found in attributes(hash), not an issue as the data can be optional
415
- end
416
-
417
- self
418
- end
419
-
420
- # Deserializes the data based on type
421
- # @param string type Data type
422
- # @param string value Value to be deserialized
423
- # @return [Object] Deserialized data
424
- def _deserialize(type, value)
425
- case type.to_sym
426
- when :DateTime
427
- Time.at(/\d/.match(value)[0].to_f).to_datetime
428
- when :Date
429
- Time.at(/\d/.match(value)[0].to_f).to_date
430
- when :String
431
- value.to_s
432
- when :Integer
433
- value.to_i
434
- when :Float
435
- value.to_f
436
- when :BOOLEAN
437
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
438
- true
439
- else
440
- false
441
- end
442
- when :Object
443
- # generic object (usually a Hash), return directly
444
- value
445
- when /\AArray<(?<inner_type>.+)>\z/
446
- inner_type = Regexp.last_match[:inner_type]
447
- value.map { |v| _deserialize(inner_type, v) }
448
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
449
- k_type = Regexp.last_match[:k_type]
450
- v_type = Regexp.last_match[:v_type]
451
- {}.tap do |hash|
452
- value.each do |k, v|
453
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
454
- end
455
- end
456
- else
457
- # model
458
- temp_model = AsposeWordsCloud.const_get(type).new
459
- temp_model.build_from_hash(value)
460
- end
461
- end
462
-
463
- # Returns the string representation of the object
464
- # @return [String] String presentation of the object
465
- def to_s
466
- to_hash.to_s
467
- end
468
-
469
- # to_body is an alias to to_hash (backward compatibility)
470
- # @return [Hash] Returns the object in the form of hash
471
- def to_body
472
- to_hash
473
- end
474
-
475
- # Returns the object in the form of hash
476
- # @return [Hash] Returns the object in the form of hash
477
- def to_hash
478
- hash = {}
479
- self.class.attribute_map.each_pair do |attr, param|
480
- value = self.send(attr)
481
- next if value.nil?
482
- hash[param] = _to_hash(value)
483
- end
484
- hash
485
- end
486
-
487
- # Outputs non-array value in the form of hash
488
- # For object, use to_hash. Otherwise, just return the value
489
- # @param [Object] value Any valid value
490
- # @return [Hash] Returns the value in the form of hash
491
- def _to_hash(value)
492
- if value.is_a?(Array)
493
- value.compact.map { |v| _to_hash(v) }
494
- elsif value.is_a?(Hash)
495
- {}.tap do |hash|
496
- value.each { |k, v| hash[k] = _to_hash(v) }
497
- end
498
- elsif value.respond_to? :to_hash
499
- value.to_hash
500
- else
501
- value
502
- end
503
- end
504
-
505
- end
506
-
507
- end
1
+
2
+ require 'date'
3
+
4
+ module AsposeWordsCloud
5
+ #
6
+ # --------------------------------------------------------------------------------------------------------------------
7
+ # <copyright company="Aspose" file="TiffSaveOptionsData.rb">
8
+ # Copyright (c) 2019 Aspose.Words for Cloud
9
+ # </copyright>
10
+ # <summary>
11
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ # of this software and associated documentation files (the "Software"), to deal
13
+ # in the Software without restriction, including without limitation the rights
14
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ # copies of the Software, and to permit persons to whom the Software is
16
+ # furnished to do so, subject to the following conditions:
17
+ #
18
+ # The above copyright notice and this permission notice shall be included in all
19
+ # copies or substantial portions of the Software.
20
+ #
21
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ # SOFTWARE.
28
+ # </summary>
29
+ # --------------------------------------------------------------------------------------------------------------------
30
+ #
31
+
32
+ # Container class for tiff save options.
33
+ class TiffSaveOptionsData
34
+ attr_accessor :graphics_quality_options
35
+
36
+ # Gets or sets the horizontal resolution for the generated images, in dots per inch. This property has effect only when saving to raster image formats. The default value is 96.
37
+ attr_accessor :horizontal_resolution
38
+
39
+ # Gets or sets brightness of image.
40
+ attr_accessor :image_brightness
41
+
42
+ # Gets or sets color mode of image.
43
+ attr_accessor :image_color_mode
44
+
45
+ # Gets or sets contrast of image.
46
+ attr_accessor :image_contrast
47
+
48
+ # Gets or sets background (paper) color of image.
49
+ attr_accessor :paper_color
50
+
51
+ # Gets or sets pixel format of image.
52
+ attr_accessor :pixel_format
53
+
54
+ # Gets or sets both horizontal and vertical resolution for the generated images, in dots per inch. This property has effect only when saving to raster image formats. The default value is 96.
55
+ attr_accessor :resolution
56
+
57
+ # Gets or sets zoom factor of image.
58
+ attr_accessor :scale
59
+
60
+ # Gets or sets determine whether or not to use anti-aliasing for rendering.
61
+ attr_accessor :use_anti_aliasing
62
+
63
+ # Gets or sets a value determining whether to use GDI+ or Aspose.Words metafile renderer when saving to EMF.
64
+ attr_accessor :use_gdi_emf_renderer
65
+
66
+ # Gets or sets determine whether or not to use high quality (i.e. slow) rendering algorithms.
67
+ attr_accessor :use_high_quality_rendering
68
+
69
+ # Gets or sets the vertical resolution for the generated images, in dots per inch. This property has effect only when saving to raster image formats. The default value is 96.
70
+ attr_accessor :vertical_resolution
71
+
72
+ # Gets or sets a value determining how colors are rendered. { Normal | Grayscale}.
73
+ attr_accessor :color_mode
74
+
75
+ # Gets or sets determines the quality of the JPEG images inside PDF document.
76
+ attr_accessor :jpeg_quality
77
+
78
+ attr_accessor :metafile_rendering_options
79
+
80
+ # Gets or sets indicates the symbol set that is used to represent numbers while rendering to fixed page formats.
81
+ attr_accessor :numeral_format
82
+
83
+ # Gets or sets flag indicates whether it is required to optimize output of XPS. If this flag is set redundant nested canvases and empty canvases are removed, also neighbor glyphs with the same formatting are concatenated. Note: The accuracy of the content display may be affected if this property is set to true. Default is false.
84
+ attr_accessor :optimize_output
85
+
86
+ # Gets or sets determines number of pages to render.
87
+ attr_accessor :page_count
88
+
89
+ # Gets or sets determines 0-based index of the first page to render.
90
+ attr_accessor :page_index
91
+
92
+ # Gets or sets format of save.
93
+ attr_accessor :save_format
94
+
95
+ # Gets or sets name of destination file.
96
+ attr_accessor :file_name
97
+
98
+ # Gets or sets a value determining how DrawingML shapes are rendered. { Fallback | DrawingML }.
99
+ attr_accessor :dml_rendering_mode
100
+
101
+ # Gets or sets a value determining how DrawingML effects are rendered. { Simplified | None | Fine }.
102
+ attr_accessor :dml_effects_rendering_mode
103
+
104
+ # Gets or sets controls zip output or not. Default value is false.
105
+ attr_accessor :zip_output
106
+
107
+ # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastSavedTime property is updated before saving.
108
+ attr_accessor :update_last_saved_time_property
109
+
110
+ # Gets or sets value determining whether content of StructuredDocumentTag is updated before saving.
111
+ attr_accessor :update_sdt_content
112
+
113
+ # Gets or sets a value determining if fields should be updated before saving the document to a fixed page format. Default value for this property is. true
114
+ attr_accessor :update_fields
115
+
116
+ # Gets or sets the threshold that determines the value of the binarization error in the Floyd-Steinberg method. when ImageBinarizationMethod is ImageBinarizationMethod.FloydSteinbergDithering. Default value is 128.
117
+ attr_accessor :threshold_for_floyd_steinberg_dithering
118
+
119
+ # Gets or sets specifies method used while converting images to 1 bpp format.
120
+ attr_accessor :tiff_binarization_method
121
+
122
+ # Gets or sets type of compression.
123
+ attr_accessor :tiff_compression
124
+
125
+
126
+ # Attribute mapping from ruby-style variable name to JSON key.
127
+ def self.attribute_map
128
+ {
129
+ :'graphics_quality_options' => :'GraphicsQualityOptions',
130
+ :'horizontal_resolution' => :'HorizontalResolution',
131
+ :'image_brightness' => :'ImageBrightness',
132
+ :'image_color_mode' => :'ImageColorMode',
133
+ :'image_contrast' => :'ImageContrast',
134
+ :'paper_color' => :'PaperColor',
135
+ :'pixel_format' => :'PixelFormat',
136
+ :'resolution' => :'Resolution',
137
+ :'scale' => :'Scale',
138
+ :'use_anti_aliasing' => :'UseAntiAliasing',
139
+ :'use_gdi_emf_renderer' => :'UseGdiEmfRenderer',
140
+ :'use_high_quality_rendering' => :'UseHighQualityRendering',
141
+ :'vertical_resolution' => :'VerticalResolution',
142
+ :'color_mode' => :'ColorMode',
143
+ :'jpeg_quality' => :'JpegQuality',
144
+ :'metafile_rendering_options' => :'MetafileRenderingOptions',
145
+ :'numeral_format' => :'NumeralFormat',
146
+ :'optimize_output' => :'OptimizeOutput',
147
+ :'page_count' => :'PageCount',
148
+ :'page_index' => :'PageIndex',
149
+ :'save_format' => :'SaveFormat',
150
+ :'file_name' => :'FileName',
151
+ :'dml_rendering_mode' => :'DmlRenderingMode',
152
+ :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
153
+ :'zip_output' => :'ZipOutput',
154
+ :'update_last_saved_time_property' => :'UpdateLastSavedTimeProperty',
155
+ :'update_sdt_content' => :'UpdateSdtContent',
156
+ :'update_fields' => :'UpdateFields',
157
+ :'threshold_for_floyd_steinberg_dithering' => :'ThresholdForFloydSteinbergDithering',
158
+ :'tiff_binarization_method' => :'TiffBinarizationMethod',
159
+ :'tiff_compression' => :'TiffCompression'
160
+ }
161
+ end
162
+
163
+ # Attribute type mapping.
164
+ def self.swagger_types
165
+ {
166
+ :'graphics_quality_options' => :'GraphicsQualityOptionsData',
167
+ :'horizontal_resolution' => :'Float',
168
+ :'image_brightness' => :'Float',
169
+ :'image_color_mode' => :'String',
170
+ :'image_contrast' => :'Float',
171
+ :'paper_color' => :'String',
172
+ :'pixel_format' => :'String',
173
+ :'resolution' => :'Float',
174
+ :'scale' => :'Float',
175
+ :'use_anti_aliasing' => :'BOOLEAN',
176
+ :'use_gdi_emf_renderer' => :'BOOLEAN',
177
+ :'use_high_quality_rendering' => :'BOOLEAN',
178
+ :'vertical_resolution' => :'Float',
179
+ :'color_mode' => :'String',
180
+ :'jpeg_quality' => :'Integer',
181
+ :'metafile_rendering_options' => :'MetafileRenderingOptionsData',
182
+ :'numeral_format' => :'String',
183
+ :'optimize_output' => :'BOOLEAN',
184
+ :'page_count' => :'Integer',
185
+ :'page_index' => :'Integer',
186
+ :'save_format' => :'String',
187
+ :'file_name' => :'String',
188
+ :'dml_rendering_mode' => :'String',
189
+ :'dml_effects_rendering_mode' => :'String',
190
+ :'zip_output' => :'BOOLEAN',
191
+ :'update_last_saved_time_property' => :'BOOLEAN',
192
+ :'update_sdt_content' => :'BOOLEAN',
193
+ :'update_fields' => :'BOOLEAN',
194
+ :'threshold_for_floyd_steinberg_dithering' => :'Integer',
195
+ :'tiff_binarization_method' => :'String',
196
+ :'tiff_compression' => :'String'
197
+ }
198
+ end
199
+
200
+ # Initializes the object
201
+ # @param [Hash] attributes Model attributes in the form of hash
202
+ def initialize(attributes = {})
203
+ return unless attributes.is_a?(Hash)
204
+
205
+ # convert string to symbol for hash key
206
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
207
+
208
+ if attributes.key?(:'GraphicsQualityOptions')
209
+ self.graphics_quality_options = attributes[:'GraphicsQualityOptions']
210
+ end
211
+
212
+ if attributes.key?(:'HorizontalResolution')
213
+ self.horizontal_resolution = attributes[:'HorizontalResolution']
214
+ end
215
+
216
+ if attributes.key?(:'ImageBrightness')
217
+ self.image_brightness = attributes[:'ImageBrightness']
218
+ end
219
+
220
+ if attributes.key?(:'ImageColorMode')
221
+ self.image_color_mode = attributes[:'ImageColorMode']
222
+ end
223
+
224
+ if attributes.key?(:'ImageContrast')
225
+ self.image_contrast = attributes[:'ImageContrast']
226
+ end
227
+
228
+ if attributes.key?(:'PaperColor')
229
+ self.paper_color = attributes[:'PaperColor']
230
+ end
231
+
232
+ if attributes.key?(:'PixelFormat')
233
+ self.pixel_format = attributes[:'PixelFormat']
234
+ end
235
+
236
+ if attributes.key?(:'Resolution')
237
+ self.resolution = attributes[:'Resolution']
238
+ end
239
+
240
+ if attributes.key?(:'Scale')
241
+ self.scale = attributes[:'Scale']
242
+ end
243
+
244
+ if attributes.key?(:'UseAntiAliasing')
245
+ self.use_anti_aliasing = attributes[:'UseAntiAliasing']
246
+ end
247
+
248
+ if attributes.key?(:'UseGdiEmfRenderer')
249
+ self.use_gdi_emf_renderer = attributes[:'UseGdiEmfRenderer']
250
+ end
251
+
252
+ if attributes.key?(:'UseHighQualityRendering')
253
+ self.use_high_quality_rendering = attributes[:'UseHighQualityRendering']
254
+ end
255
+
256
+ if attributes.key?(:'VerticalResolution')
257
+ self.vertical_resolution = attributes[:'VerticalResolution']
258
+ end
259
+
260
+ if attributes.key?(:'ColorMode')
261
+ self.color_mode = attributes[:'ColorMode']
262
+ end
263
+
264
+ if attributes.key?(:'JpegQuality')
265
+ self.jpeg_quality = attributes[:'JpegQuality']
266
+ end
267
+
268
+ if attributes.key?(:'MetafileRenderingOptions')
269
+ self.metafile_rendering_options = attributes[:'MetafileRenderingOptions']
270
+ end
271
+
272
+ if attributes.key?(:'NumeralFormat')
273
+ self.numeral_format = attributes[:'NumeralFormat']
274
+ end
275
+
276
+ if attributes.key?(:'OptimizeOutput')
277
+ self.optimize_output = attributes[:'OptimizeOutput']
278
+ end
279
+
280
+ if attributes.key?(:'PageCount')
281
+ self.page_count = attributes[:'PageCount']
282
+ end
283
+
284
+ if attributes.key?(:'PageIndex')
285
+ self.page_index = attributes[:'PageIndex']
286
+ end
287
+
288
+ if attributes.key?(:'SaveFormat')
289
+ self.save_format = attributes[:'SaveFormat']
290
+ end
291
+
292
+ if attributes.key?(:'FileName')
293
+ self.file_name = attributes[:'FileName']
294
+ end
295
+
296
+ if attributes.key?(:'DmlRenderingMode')
297
+ self.dml_rendering_mode = attributes[:'DmlRenderingMode']
298
+ end
299
+
300
+ if attributes.key?(:'DmlEffectsRenderingMode')
301
+ self.dml_effects_rendering_mode = attributes[:'DmlEffectsRenderingMode']
302
+ end
303
+
304
+ if attributes.key?(:'ZipOutput')
305
+ self.zip_output = attributes[:'ZipOutput']
306
+ end
307
+
308
+ if attributes.key?(:'UpdateLastSavedTimeProperty')
309
+ self.update_last_saved_time_property = attributes[:'UpdateLastSavedTimeProperty']
310
+ end
311
+
312
+ if attributes.key?(:'UpdateSdtContent')
313
+ self.update_sdt_content = attributes[:'UpdateSdtContent']
314
+ end
315
+
316
+ if attributes.key?(:'UpdateFields')
317
+ self.update_fields = attributes[:'UpdateFields']
318
+ end
319
+
320
+ if attributes.key?(:'ThresholdForFloydSteinbergDithering')
321
+ self.threshold_for_floyd_steinberg_dithering = attributes[:'ThresholdForFloydSteinbergDithering']
322
+ end
323
+
324
+ if attributes.key?(:'TiffBinarizationMethod')
325
+ self.tiff_binarization_method = attributes[:'TiffBinarizationMethod']
326
+ end
327
+
328
+ if attributes.key?(:'TiffCompression')
329
+ self.tiff_compression = attributes[:'TiffCompression']
330
+ end
331
+
332
+ end
333
+
334
+ # Show invalid properties with the reasons. Usually used together with valid?
335
+ # @return Array for valid properies with the reasons
336
+ def list_invalid_properties
337
+ invalid_properties = []
338
+ return invalid_properties
339
+ end
340
+
341
+ # Check to see if the all the properties in the model are valid
342
+ # @return true if the model is valid
343
+ def valid?
344
+ return true
345
+ end
346
+
347
+ # Checks equality by comparing each attribute.
348
+ # @param [Object] Object to be compared
349
+ def ==(other)
350
+ return true if self.equal?(other)
351
+ self.class == other.class &&
352
+ graphics_quality_options == other.graphics_quality_options &&
353
+ horizontal_resolution == other.horizontal_resolution &&
354
+ image_brightness == other.image_brightness &&
355
+ image_color_mode == other.image_color_mode &&
356
+ image_contrast == other.image_contrast &&
357
+ paper_color == other.paper_color &&
358
+ pixel_format == other.pixel_format &&
359
+ resolution == other.resolution &&
360
+ scale == other.scale &&
361
+ use_anti_aliasing == other.use_anti_aliasing &&
362
+ use_gdi_emf_renderer == other.use_gdi_emf_renderer &&
363
+ use_high_quality_rendering == other.use_high_quality_rendering &&
364
+ vertical_resolution == other.vertical_resolution &&
365
+ color_mode == other.color_mode &&
366
+ jpeg_quality == other.jpeg_quality &&
367
+ metafile_rendering_options == other.metafile_rendering_options &&
368
+ numeral_format == other.numeral_format &&
369
+ optimize_output == other.optimize_output &&
370
+ page_count == other.page_count &&
371
+ page_index == other.page_index &&
372
+ save_format == other.save_format &&
373
+ file_name == other.file_name &&
374
+ dml_rendering_mode == other.dml_rendering_mode &&
375
+ dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
376
+ zip_output == other.zip_output &&
377
+ update_last_saved_time_property == other.update_last_saved_time_property &&
378
+ update_sdt_content == other.update_sdt_content &&
379
+ update_fields == other.update_fields &&
380
+ threshold_for_floyd_steinberg_dithering == other.threshold_for_floyd_steinberg_dithering &&
381
+ tiff_binarization_method == other.tiff_binarization_method &&
382
+ tiff_compression == other.tiff_compression
383
+ end
384
+
385
+ # @see the `==` method
386
+ # @param [Object] Object to be compared
387
+ def eql?(other)
388
+ self == other
389
+ end
390
+
391
+ # Calculates hash code according to all attributes.
392
+ # @return [Fixnum] Hash code
393
+ def hash
394
+ [graphics_quality_options, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing, use_gdi_emf_renderer, use_high_quality_rendering, vertical_resolution, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, threshold_for_floyd_steinberg_dithering, tiff_binarization_method, tiff_compression].hash
395
+ end
396
+
397
+ # Builds the object from hash
398
+ # @param [Hash] attributes Model attributes in the form of hash
399
+ # @return [Object] Returns the model itself
400
+ def build_from_hash(attributes)
401
+ return nil unless attributes.is_a?(Hash)
402
+ self.class.swagger_types.each_pair do |key, type|
403
+ if type =~ /\AArray<(.*)>/i
404
+ # check to ensure the input is an array given that the the attribute
405
+ # is documented as an array but the input is not
406
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
407
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
408
+ end
409
+ elsif !attributes[self.class.attribute_map[key]].nil?
410
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
411
+ end
412
+ # or else data not found in attributes(hash), not an issue as the data can be optional
413
+ end
414
+
415
+ self
416
+ end
417
+
418
+ # Deserializes the data based on type
419
+ # @param string type Data type
420
+ # @param string value Value to be deserialized
421
+ # @return [Object] Deserialized data
422
+ def _deserialize(type, value)
423
+ case type.to_sym
424
+ when :DateTime
425
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
426
+ when :Date
427
+ Time.at(/\d/.match(value)[0].to_f).to_date
428
+ when :String
429
+ value.to_s
430
+ when :Integer
431
+ value.to_i
432
+ when :Float
433
+ value.to_f
434
+ when :BOOLEAN
435
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
436
+ true
437
+ else
438
+ false
439
+ end
440
+ when :Object
441
+ # generic object (usually a Hash), return directly
442
+ value
443
+ when /\AArray<(?<inner_type>.+)>\z/
444
+ inner_type = Regexp.last_match[:inner_type]
445
+ value.map { |v| _deserialize(inner_type, v) }
446
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
447
+ k_type = Regexp.last_match[:k_type]
448
+ v_type = Regexp.last_match[:v_type]
449
+ {}.tap do |hash|
450
+ value.each do |k, v|
451
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
452
+ end
453
+ end
454
+ else
455
+ # model
456
+ temp_model = AsposeWordsCloud.const_get(type).new
457
+ temp_model.build_from_hash(value)
458
+ end
459
+ end
460
+
461
+ # Returns the string representation of the object
462
+ # @return [String] String presentation of the object
463
+ def to_s
464
+ to_hash.to_s
465
+ end
466
+
467
+ # to_body is an alias to to_hash (backward compatibility)
468
+ # @return [Hash] Returns the object in the form of hash
469
+ def to_body
470
+ to_hash
471
+ end
472
+
473
+ # Returns the object in the form of hash
474
+ # @return [Hash] Returns the object in the form of hash
475
+ def to_hash
476
+ hash = {}
477
+ self.class.attribute_map.each_pair do |attr, param|
478
+ value = self.send(attr)
479
+ next if value.nil?
480
+ hash[param] = _to_hash(value)
481
+ end
482
+ hash
483
+ end
484
+
485
+ # Outputs non-array value in the form of hash
486
+ # For object, use to_hash. Otherwise, just return the value
487
+ # @param [Object] value Any valid value
488
+ # @return [Hash] Returns the value in the form of hash
489
+ def _to_hash(value)
490
+ if value.is_a?(Array)
491
+ value.compact.map { |v| _to_hash(v) }
492
+ elsif value.is_a?(Hash)
493
+ {}.tap do |hash|
494
+ value.each { |k, v| hash[k] = _to_hash(v) }
495
+ end
496
+ elsif value.respond_to? :to_hash
497
+ value.to_hash
498
+ else
499
+ value
500
+ end
501
+ end
502
+
503
+ end
504
+
505
+ end