aspose_pdf_cloud 19.5.0 → 19.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (271) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +39 -26
  3. data/docs/Annotation.md +1 -1
  4. data/docs/AnnotationInfo.md +2 -2
  5. data/docs/Attachment.md +1 -1
  6. data/docs/Bookmark.md +25 -0
  7. data/docs/{FileExistResponse.md → BookmarkResponse.md} +3 -3
  8. data/docs/Bookmarks.md +10 -0
  9. data/docs/{DiscUsageResponse.md → BookmarksResponse.md} +3 -3
  10. data/docs/CaretAnnotation.md +1 -1
  11. data/docs/CellRecognized.md +1 -1
  12. data/docs/CircleAnnotation.md +1 -1
  13. data/docs/CommonFigureAnnotation.md +1 -1
  14. data/docs/DiscUsage.md +3 -3
  15. data/docs/DocumentPrivilege.md +1 -1
  16. data/docs/DocumentProperty.md +1 -1
  17. data/docs/Error.md +12 -0
  18. data/docs/ErrorDetails.md +10 -0
  19. data/docs/Field.md +1 -1
  20. data/docs/Fields.md +1 -1
  21. data/docs/FileAttachmentAnnotation.md +1 -1
  22. data/docs/FileVersion.md +8 -8
  23. data/docs/FileVersions.md +9 -0
  24. data/docs/FilesList.md +9 -0
  25. data/docs/FilesUploadResult.md +10 -0
  26. data/docs/FreeTextAnnotation.md +2 -2
  27. data/docs/GraphInfo.md +2 -2
  28. data/docs/HighlightAnnotation.md +1 -1
  29. data/docs/Image.md +3 -3
  30. data/docs/ImageFooter.md +1 -1
  31. data/docs/ImageHeader.md +1 -1
  32. data/docs/ImageStamp.md +1 -1
  33. data/docs/InkAnnotation.md +1 -1
  34. data/docs/LineAnnotation.md +3 -3
  35. data/docs/LinkAnnotation.md +4 -4
  36. data/docs/MarkupAnnotation.md +1 -1
  37. data/docs/MovieAnnotation.md +1 -1
  38. data/docs/ObjectExist.md +10 -0
  39. data/docs/Page.md +1 -1
  40. data/docs/PageNumberStamp.md +1 -1
  41. data/docs/PdfApi.md +560 -328
  42. data/docs/PdfPageStamp.md +1 -1
  43. data/docs/PolyAnnotation.md +2 -2
  44. data/docs/PolyLineAnnotation.md +2 -2
  45. data/docs/PolygonAnnotation.md +2 -2
  46. data/docs/PopupAnnotation.md +1 -1
  47. data/docs/PopupAnnotationWithParent.md +1 -1
  48. data/docs/RedactionAnnotation.md +1 -1
  49. data/docs/ScreenAnnotation.md +1 -1
  50. data/docs/Signature.md +1 -1
  51. data/docs/SignatureVerifyResponse.md +1 -1
  52. data/docs/SoundAnnotation.md +2 -2
  53. data/docs/SplitResultDocument.md +1 -1
  54. data/docs/SquareAnnotation.md +1 -1
  55. data/docs/SquigglyAnnotation.md +1 -1
  56. data/docs/Stamp.md +2 -2
  57. data/docs/StampAnnotation.md +1 -1
  58. data/docs/StampBase.md +1 -1
  59. data/docs/StampInfo.md +1 -1
  60. data/docs/StorageExist.md +9 -0
  61. data/docs/StorageFile.md +13 -0
  62. data/docs/StrikeOutAnnotation.md +1 -1
  63. data/docs/Table.md +1 -1
  64. data/docs/TextAnnotation.md +1 -1
  65. data/docs/TextFooter.md +2 -2
  66. data/docs/TextHeader.md +2 -2
  67. data/docs/TextRect.md +3 -3
  68. data/docs/TextReplaceListRequest.md +1 -1
  69. data/docs/TextReplaceResponse.md +1 -1
  70. data/docs/TextStamp.md +2 -2
  71. data/docs/UnderlineAnnotation.md +1 -1
  72. data/docs/WordCountResponse.md +1 -1
  73. data/lib/aspose_pdf_cloud.rb +12 -8
  74. data/lib/aspose_pdf_cloud/api/pdf_api.rb +2521 -1650
  75. data/lib/aspose_pdf_cloud/api_client.rb +2 -54
  76. data/lib/aspose_pdf_cloud/configuration.rb +2 -5
  77. data/lib/aspose_pdf_cloud/models/annotation.rb +7 -4
  78. data/lib/aspose_pdf_cloud/models/annotation_info.rb +12 -4
  79. data/lib/aspose_pdf_cloud/models/annotations_info.rb +2 -4
  80. data/lib/aspose_pdf_cloud/models/annotations_info_response.rb +2 -4
  81. data/lib/aspose_pdf_cloud/models/aspose_response.rb +2 -4
  82. data/lib/aspose_pdf_cloud/models/attachment.rb +7 -4
  83. data/lib/aspose_pdf_cloud/models/attachment_response.rb +2 -4
  84. data/lib/aspose_pdf_cloud/models/attachments.rb +2 -4
  85. data/lib/aspose_pdf_cloud/models/attachments_response.rb +2 -4
  86. data/lib/aspose_pdf_cloud/models/{append_document.rb → bookmark.rb} +167 -42
  87. data/lib/aspose_pdf_cloud/models/{storage_exist_response.rb → bookmark_response.rb} +12 -13
  88. data/lib/aspose_pdf_cloud/models/{files_response.rb → bookmarks.rb} +22 -36
  89. data/lib/aspose_pdf_cloud/models/{disc_usage_response.rb → bookmarks_response.rb} +12 -13
  90. data/lib/aspose_pdf_cloud/models/border_info.rb +2 -4
  91. data/lib/aspose_pdf_cloud/models/caret_annotation.rb +7 -4
  92. data/lib/aspose_pdf_cloud/models/caret_annotation_response.rb +2 -4
  93. data/lib/aspose_pdf_cloud/models/caret_annotations.rb +2 -4
  94. data/lib/aspose_pdf_cloud/models/caret_annotations_response.rb +2 -4
  95. data/lib/aspose_pdf_cloud/models/cell.rb +2 -4
  96. data/lib/aspose_pdf_cloud/models/cell_recognized.rb +3 -5
  97. data/lib/aspose_pdf_cloud/models/circle_annotation.rb +7 -4
  98. data/lib/aspose_pdf_cloud/models/circle_annotation_response.rb +2 -4
  99. data/lib/aspose_pdf_cloud/models/circle_annotations.rb +2 -4
  100. data/lib/aspose_pdf_cloud/models/circle_annotations_response.rb +2 -4
  101. data/lib/aspose_pdf_cloud/models/color.rb +2 -4
  102. data/lib/aspose_pdf_cloud/models/common_figure_annotation.rb +7 -4
  103. data/lib/aspose_pdf_cloud/models/disc_usage.rb +5 -5
  104. data/lib/aspose_pdf_cloud/models/document.rb +2 -4
  105. data/lib/aspose_pdf_cloud/models/document_page_response.rb +2 -4
  106. data/lib/aspose_pdf_cloud/models/document_pages_response.rb +2 -4
  107. data/lib/aspose_pdf_cloud/models/document_privilege.rb +3 -5
  108. data/lib/aspose_pdf_cloud/models/document_properties.rb +2 -4
  109. data/lib/aspose_pdf_cloud/models/document_properties_response.rb +2 -4
  110. data/lib/aspose_pdf_cloud/models/document_property.rb +7 -4
  111. data/lib/aspose_pdf_cloud/models/document_property_response.rb +2 -4
  112. data/lib/aspose_pdf_cloud/models/document_response.rb +2 -4
  113. data/lib/aspose_pdf_cloud/models/{file_exist_response.rb → error.rb} +31 -27
  114. data/lib/aspose_pdf_cloud/models/error_details.rb +214 -0
  115. data/lib/aspose_pdf_cloud/models/field.rb +7 -4
  116. data/lib/aspose_pdf_cloud/models/field_response.rb +2 -4
  117. data/lib/aspose_pdf_cloud/models/fields.rb +7 -4
  118. data/lib/aspose_pdf_cloud/models/fields_response.rb +2 -4
  119. data/lib/aspose_pdf_cloud/models/file_attachment_annotation.rb +7 -4
  120. data/lib/aspose_pdf_cloud/models/file_attachment_annotation_response.rb +2 -4
  121. data/lib/aspose_pdf_cloud/models/file_attachment_annotations.rb +2 -4
  122. data/lib/aspose_pdf_cloud/models/file_attachment_annotations_response.rb +2 -4
  123. data/lib/aspose_pdf_cloud/models/file_version.rb +15 -5
  124. data/lib/aspose_pdf_cloud/models/file_versions.rb +201 -0
  125. data/lib/aspose_pdf_cloud/models/files_list.rb +201 -0
  126. data/lib/aspose_pdf_cloud/models/files_upload_result.rb +213 -0
  127. data/lib/aspose_pdf_cloud/models/free_text_annotation.rb +12 -4
  128. data/lib/aspose_pdf_cloud/models/free_text_annotation_response.rb +2 -4
  129. data/lib/aspose_pdf_cloud/models/free_text_annotations.rb +2 -4
  130. data/lib/aspose_pdf_cloud/models/free_text_annotations_response.rb +2 -4
  131. data/lib/aspose_pdf_cloud/models/graph_info.rb +4 -6
  132. data/lib/aspose_pdf_cloud/models/highlight_annotation.rb +7 -4
  133. data/lib/aspose_pdf_cloud/models/highlight_annotation_response.rb +2 -4
  134. data/lib/aspose_pdf_cloud/models/highlight_annotations.rb +2 -4
  135. data/lib/aspose_pdf_cloud/models/highlight_annotations_response.rb +2 -4
  136. data/lib/aspose_pdf_cloud/models/image.rb +17 -4
  137. data/lib/aspose_pdf_cloud/models/image_footer.rb +3 -5
  138. data/lib/aspose_pdf_cloud/models/image_header.rb +3 -5
  139. data/lib/aspose_pdf_cloud/models/image_response.rb +2 -4
  140. data/lib/aspose_pdf_cloud/models/image_stamp.rb +3 -5
  141. data/lib/aspose_pdf_cloud/models/image_template.rb +21 -4
  142. data/lib/aspose_pdf_cloud/models/image_templates_request.rb +2 -4
  143. data/lib/aspose_pdf_cloud/models/images.rb +2 -4
  144. data/lib/aspose_pdf_cloud/models/images_response.rb +2 -4
  145. data/lib/aspose_pdf_cloud/models/ink_annotation.rb +7 -4
  146. data/lib/aspose_pdf_cloud/models/ink_annotation_response.rb +2 -4
  147. data/lib/aspose_pdf_cloud/models/ink_annotations.rb +2 -4
  148. data/lib/aspose_pdf_cloud/models/ink_annotations_response.rb +2 -4
  149. data/lib/aspose_pdf_cloud/models/line_annotation.rb +17 -4
  150. data/lib/aspose_pdf_cloud/models/line_annotation_response.rb +2 -4
  151. data/lib/aspose_pdf_cloud/models/line_annotations.rb +2 -4
  152. data/lib/aspose_pdf_cloud/models/line_annotations_response.rb +2 -4
  153. data/lib/aspose_pdf_cloud/models/link.rb +2 -4
  154. data/lib/aspose_pdf_cloud/models/link_annotation.rb +41 -4
  155. data/lib/aspose_pdf_cloud/models/link_annotation_response.rb +2 -4
  156. data/lib/aspose_pdf_cloud/models/link_annotations.rb +2 -4
  157. data/lib/aspose_pdf_cloud/models/link_annotations_response.rb +2 -4
  158. data/lib/aspose_pdf_cloud/models/link_element.rb +2 -4
  159. data/lib/aspose_pdf_cloud/models/margin_info.rb +2 -4
  160. data/lib/aspose_pdf_cloud/models/markup_annotation.rb +7 -4
  161. data/lib/aspose_pdf_cloud/models/merge_documents.rb +2 -4
  162. data/lib/aspose_pdf_cloud/models/movie_annotation.rb +7 -4
  163. data/lib/aspose_pdf_cloud/models/movie_annotation_response.rb +2 -4
  164. data/lib/aspose_pdf_cloud/models/movie_annotations.rb +2 -4
  165. data/lib/aspose_pdf_cloud/models/movie_annotations_response.rb +2 -4
  166. data/lib/aspose_pdf_cloud/models/{file_exist.rb → object_exist.rb} +16 -16
  167. data/lib/aspose_pdf_cloud/models/optimize_options.rb +2 -4
  168. data/lib/aspose_pdf_cloud/models/page.rb +7 -4
  169. data/lib/aspose_pdf_cloud/models/page_number_stamp.rb +3 -5
  170. data/lib/aspose_pdf_cloud/models/page_word_count.rb +2 -4
  171. data/lib/aspose_pdf_cloud/models/pages.rb +2 -4
  172. data/lib/aspose_pdf_cloud/models/paragraph.rb +2 -4
  173. data/lib/aspose_pdf_cloud/models/pdf_page_stamp.rb +3 -5
  174. data/lib/aspose_pdf_cloud/models/point.rb +2 -4
  175. data/lib/aspose_pdf_cloud/models/poly_annotation.rb +12 -4
  176. data/lib/aspose_pdf_cloud/models/poly_line_annotation.rb +12 -4
  177. data/lib/aspose_pdf_cloud/models/poly_line_annotation_response.rb +2 -4
  178. data/lib/aspose_pdf_cloud/models/poly_line_annotations.rb +2 -4
  179. data/lib/aspose_pdf_cloud/models/poly_line_annotations_response.rb +2 -4
  180. data/lib/aspose_pdf_cloud/models/polygon_annotation.rb +12 -4
  181. data/lib/aspose_pdf_cloud/models/polygon_annotation_response.rb +2 -4
  182. data/lib/aspose_pdf_cloud/models/polygon_annotations.rb +2 -4
  183. data/lib/aspose_pdf_cloud/models/polygon_annotations_response.rb +2 -4
  184. data/lib/aspose_pdf_cloud/models/popup_annotation.rb +7 -4
  185. data/lib/aspose_pdf_cloud/models/popup_annotation_response.rb +2 -4
  186. data/lib/aspose_pdf_cloud/models/popup_annotation_with_parent.rb +7 -4
  187. data/lib/aspose_pdf_cloud/models/popup_annotations.rb +2 -4
  188. data/lib/aspose_pdf_cloud/models/popup_annotations_response.rb +2 -4
  189. data/lib/aspose_pdf_cloud/models/position.rb +2 -4
  190. data/lib/aspose_pdf_cloud/models/rectangle.rb +2 -4
  191. data/lib/aspose_pdf_cloud/models/redaction_annotation.rb +7 -4
  192. data/lib/aspose_pdf_cloud/models/redaction_annotation_response.rb +2 -4
  193. data/lib/aspose_pdf_cloud/models/redaction_annotations.rb +2 -4
  194. data/lib/aspose_pdf_cloud/models/redaction_annotations_response.rb +2 -4
  195. data/lib/aspose_pdf_cloud/models/row.rb +2 -4
  196. data/lib/aspose_pdf_cloud/models/row_recognized.rb +2 -4
  197. data/lib/aspose_pdf_cloud/models/screen_annotation.rb +7 -4
  198. data/lib/aspose_pdf_cloud/models/screen_annotation_response.rb +2 -4
  199. data/lib/aspose_pdf_cloud/models/screen_annotations.rb +2 -4
  200. data/lib/aspose_pdf_cloud/models/screen_annotations_response.rb +2 -4
  201. data/lib/aspose_pdf_cloud/models/segment.rb +21 -4
  202. data/lib/aspose_pdf_cloud/models/signature.rb +22 -5
  203. data/lib/aspose_pdf_cloud/models/signature_verify_response.rb +7 -4
  204. data/lib/aspose_pdf_cloud/models/sound_annotation.rb +31 -4
  205. data/lib/aspose_pdf_cloud/models/sound_annotation_response.rb +2 -4
  206. data/lib/aspose_pdf_cloud/models/sound_annotations.rb +2 -4
  207. data/lib/aspose_pdf_cloud/models/sound_annotations_response.rb +2 -4
  208. data/lib/aspose_pdf_cloud/models/split_result.rb +2 -4
  209. data/lib/aspose_pdf_cloud/models/split_result_document.rb +7 -4
  210. data/lib/aspose_pdf_cloud/models/split_result_response.rb +2 -4
  211. data/lib/aspose_pdf_cloud/models/square_annotation.rb +7 -4
  212. data/lib/aspose_pdf_cloud/models/square_annotation_response.rb +2 -4
  213. data/lib/aspose_pdf_cloud/models/square_annotations.rb +2 -4
  214. data/lib/aspose_pdf_cloud/models/square_annotations_response.rb +2 -4
  215. data/lib/aspose_pdf_cloud/models/squiggly_annotation.rb +7 -4
  216. data/lib/aspose_pdf_cloud/models/squiggly_annotation_response.rb +2 -4
  217. data/lib/aspose_pdf_cloud/models/squiggly_annotations.rb +2 -4
  218. data/lib/aspose_pdf_cloud/models/squiggly_annotations_response.rb +2 -4
  219. data/lib/aspose_pdf_cloud/models/stamp.rb +4 -6
  220. data/lib/aspose_pdf_cloud/models/stamp_annotation.rb +7 -4
  221. data/lib/aspose_pdf_cloud/models/stamp_annotation_response.rb +2 -4
  222. data/lib/aspose_pdf_cloud/models/stamp_annotations.rb +2 -4
  223. data/lib/aspose_pdf_cloud/models/stamp_annotations_response.rb +2 -4
  224. data/lib/aspose_pdf_cloud/models/stamp_base.rb +3 -5
  225. data/lib/aspose_pdf_cloud/models/stamp_info.rb +7 -4
  226. data/lib/aspose_pdf_cloud/models/stamps_info.rb +2 -4
  227. data/lib/aspose_pdf_cloud/models/stamps_info_response.rb +2 -4
  228. data/lib/aspose_pdf_cloud/models/storage_exist.rb +204 -0
  229. data/lib/aspose_pdf_cloud/models/{file.rb → storage_file.rb} +9 -6
  230. data/lib/aspose_pdf_cloud/models/strike_out_annotation.rb +7 -4
  231. data/lib/aspose_pdf_cloud/models/strike_out_annotation_response.rb +2 -4
  232. data/lib/aspose_pdf_cloud/models/strike_out_annotations.rb +2 -4
  233. data/lib/aspose_pdf_cloud/models/strike_out_annotations_response.rb +2 -4
  234. data/lib/aspose_pdf_cloud/models/table.rb +7 -4
  235. data/lib/aspose_pdf_cloud/models/table_recognized.rb +2 -4
  236. data/lib/aspose_pdf_cloud/models/table_recognized_response.rb +2 -4
  237. data/lib/aspose_pdf_cloud/models/tables_recognized.rb +2 -4
  238. data/lib/aspose_pdf_cloud/models/tables_recognized_response.rb +2 -4
  239. data/lib/aspose_pdf_cloud/models/text_annotation.rb +7 -4
  240. data/lib/aspose_pdf_cloud/models/text_annotation_response.rb +2 -4
  241. data/lib/aspose_pdf_cloud/models/text_annotations.rb +2 -4
  242. data/lib/aspose_pdf_cloud/models/text_annotations_response.rb +2 -4
  243. data/lib/aspose_pdf_cloud/models/text_footer.rb +4 -6
  244. data/lib/aspose_pdf_cloud/models/text_header.rb +4 -6
  245. data/lib/aspose_pdf_cloud/models/text_line.rb +2 -4
  246. data/lib/aspose_pdf_cloud/models/text_rect.rb +5 -7
  247. data/lib/aspose_pdf_cloud/models/text_rects.rb +2 -4
  248. data/lib/aspose_pdf_cloud/models/text_rects_response.rb +2 -4
  249. data/lib/aspose_pdf_cloud/models/text_replace.rb +40 -4
  250. data/lib/aspose_pdf_cloud/models/text_replace_list_request.rb +3 -4
  251. data/lib/aspose_pdf_cloud/models/text_replace_response.rb +7 -4
  252. data/lib/aspose_pdf_cloud/models/text_stamp.rb +4 -6
  253. data/lib/aspose_pdf_cloud/models/text_state.rb +2 -4
  254. data/lib/aspose_pdf_cloud/models/text_style.rb +2 -4
  255. data/lib/aspose_pdf_cloud/models/underline_annotation.rb +7 -4
  256. data/lib/aspose_pdf_cloud/models/underline_annotation_response.rb +2 -4
  257. data/lib/aspose_pdf_cloud/models/underline_annotations.rb +2 -4
  258. data/lib/aspose_pdf_cloud/models/underline_annotations_response.rb +2 -4
  259. data/lib/aspose_pdf_cloud/models/word_count.rb +2 -4
  260. data/lib/aspose_pdf_cloud/models/word_count_response.rb +3 -5
  261. data/lib/aspose_pdf_cloud/version.rb +1 -1
  262. data/test/pdf_tests.rb +175 -71
  263. data/test_data/sample.tex +105 -0
  264. metadata +27 -18
  265. data/docs/AppendDocument.md +0 -11
  266. data/docs/File.md +0 -13
  267. data/docs/FileExist.md +0 -10
  268. data/docs/FileVersionsResponse.md +0 -11
  269. data/docs/FilesResponse.md +0 -11
  270. data/docs/StorageExistResponse.md +0 -11
  271. data/lib/aspose_pdf_cloud/models/file_versions_response.rb +0 -227
@@ -142,11 +142,9 @@ module AsposePdfCloud
142
142
  def _deserialize(type, value)
143
143
  case type.to_sym
144
144
  when :DateTime
145
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
146
- Time.strptime(value, format).utc.to_datetime
145
+ DateTime.parse(value)
147
146
  when :Date
148
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
149
- Time.strptime(value, format).utc.to_datetime.to_date
147
+ Date.parse(value)
150
148
  when :String
151
149
  value.to_s
152
150
  when :Integer
@@ -131,11 +131,9 @@ module AsposePdfCloud
131
131
  def _deserialize(type, value)
132
132
  case type.to_sym
133
133
  when :DateTime
134
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
135
- Time.strptime(value, format).utc.to_datetime
134
+ DateTime.parse(value)
136
135
  when :Date
137
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
138
- Time.strptime(value, format).utc.to_datetime.to_date
136
+ Date.parse(value)
139
137
  when :String
140
138
  value.to_s
141
139
  when :Integer
@@ -142,11 +142,9 @@ module AsposePdfCloud
142
142
  def _deserialize(type, value)
143
143
  case type.to_sym
144
144
  when :DateTime
145
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
146
- Time.strptime(value, format).utc.to_datetime
145
+ DateTime.parse(value)
147
146
  when :Date
148
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
149
- Time.strptime(value, format).utc.to_datetime.to_date
147
+ Date.parse(value)
150
148
  when :String
151
149
  value.to_s
152
150
  when :Integer
@@ -247,12 +247,22 @@ module AsposePdfCloud
247
247
  # @return Array for valid properies with the reasons
248
248
  def list_invalid_properties
249
249
  invalid_properties = Array.new
250
+ if @rect.nil?
251
+ invalid_properties.push("invalid value for 'rect', rect cannot be nil.")
252
+ end
253
+
254
+ if @vertices.nil?
255
+ invalid_properties.push("invalid value for 'vertices', vertices cannot be nil.")
256
+ end
257
+
250
258
  return invalid_properties
251
259
  end
252
260
 
253
261
  # Check to see if the all the properties in the model are valid
254
262
  # @return true if the model is valid
255
263
  def valid?
264
+ return false if @rect.nil?
265
+ return false if @vertices.nil?
256
266
  return true
257
267
  end
258
268
 
@@ -323,11 +333,9 @@ module AsposePdfCloud
323
333
  def _deserialize(type, value)
324
334
  case type.to_sym
325
335
  when :DateTime
326
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
327
- Time.strptime(value, format).utc.to_datetime
336
+ DateTime.parse(value)
328
337
  when :Date
329
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
330
- Time.strptime(value, format).utc.to_datetime.to_date
338
+ Date.parse(value)
331
339
  when :String
332
340
  value.to_s
333
341
  when :Integer
@@ -142,11 +142,9 @@ module AsposePdfCloud
142
142
  def _deserialize(type, value)
143
143
  case type.to_sym
144
144
  when :DateTime
145
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
146
- Time.strptime(value, format).utc.to_datetime
145
+ DateTime.parse(value)
147
146
  when :Date
148
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
149
- Time.strptime(value, format).utc.to_datetime.to_date
147
+ Date.parse(value)
150
148
  when :String
151
149
  value.to_s
152
150
  when :Integer
@@ -131,11 +131,9 @@ module AsposePdfCloud
131
131
  def _deserialize(type, value)
132
132
  case type.to_sym
133
133
  when :DateTime
134
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
135
- Time.strptime(value, format).utc.to_datetime
134
+ DateTime.parse(value)
136
135
  when :Date
137
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
138
- Time.strptime(value, format).utc.to_datetime.to_date
136
+ Date.parse(value)
139
137
  when :String
140
138
  value.to_s
141
139
  when :Integer
@@ -142,11 +142,9 @@ module AsposePdfCloud
142
142
  def _deserialize(type, value)
143
143
  case type.to_sym
144
144
  when :DateTime
145
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
146
- Time.strptime(value, format).utc.to_datetime
145
+ DateTime.parse(value)
147
146
  when :Date
148
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
149
- Time.strptime(value, format).utc.to_datetime.to_date
147
+ Date.parse(value)
150
148
  when :String
151
149
  value.to_s
152
150
  when :Integer
@@ -173,12 +173,17 @@ module AsposePdfCloud
173
173
  # @return Array for valid properies with the reasons
174
174
  def list_invalid_properties
175
175
  invalid_properties = Array.new
176
+ if @rect.nil?
177
+ invalid_properties.push("invalid value for 'rect', rect cannot be nil.")
178
+ end
179
+
176
180
  return invalid_properties
177
181
  end
178
182
 
179
183
  # Check to see if the all the properties in the model are valid
180
184
  # @return true if the model is valid
181
185
  def valid?
186
+ return false if @rect.nil?
182
187
  return true
183
188
  end
184
189
 
@@ -241,11 +246,9 @@ module AsposePdfCloud
241
246
  def _deserialize(type, value)
242
247
  case type.to_sym
243
248
  when :DateTime
244
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
245
- Time.strptime(value, format).utc.to_datetime
249
+ DateTime.parse(value)
246
250
  when :Date
247
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
248
- Time.strptime(value, format).utc.to_datetime.to_date
251
+ Date.parse(value)
249
252
  when :String
250
253
  value.to_s
251
254
  when :Integer
@@ -142,11 +142,9 @@ module AsposePdfCloud
142
142
  def _deserialize(type, value)
143
143
  case type.to_sym
144
144
  when :DateTime
145
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
146
- Time.strptime(value, format).utc.to_datetime
145
+ DateTime.parse(value)
147
146
  when :Date
148
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
149
- Time.strptime(value, format).utc.to_datetime.to_date
147
+ Date.parse(value)
150
148
  when :String
151
149
  value.to_s
152
150
  when :Integer
@@ -182,12 +182,17 @@ module AsposePdfCloud
182
182
  # @return Array for valid properies with the reasons
183
183
  def list_invalid_properties
184
184
  invalid_properties = Array.new
185
+ if @rect.nil?
186
+ invalid_properties.push("invalid value for 'rect', rect cannot be nil.")
187
+ end
188
+
185
189
  return invalid_properties
186
190
  end
187
191
 
188
192
  # Check to see if the all the properties in the model are valid
189
193
  # @return true if the model is valid
190
194
  def valid?
195
+ return false if @rect.nil?
191
196
  return true
192
197
  end
193
198
 
@@ -251,11 +256,9 @@ module AsposePdfCloud
251
256
  def _deserialize(type, value)
252
257
  case type.to_sym
253
258
  when :DateTime
254
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
255
- Time.strptime(value, format).utc.to_datetime
259
+ DateTime.parse(value)
256
260
  when :Date
257
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
258
- Time.strptime(value, format).utc.to_datetime.to_date
261
+ Date.parse(value)
259
262
  when :String
260
263
  value.to_s
261
264
  when :Integer
@@ -131,11 +131,9 @@ module AsposePdfCloud
131
131
  def _deserialize(type, value)
132
132
  case type.to_sym
133
133
  when :DateTime
134
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
135
- Time.strptime(value, format).utc.to_datetime
134
+ DateTime.parse(value)
136
135
  when :Date
137
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
138
- Time.strptime(value, format).utc.to_datetime.to_date
136
+ Date.parse(value)
139
137
  when :String
140
138
  value.to_s
141
139
  when :Integer
@@ -142,11 +142,9 @@ module AsposePdfCloud
142
142
  def _deserialize(type, value)
143
143
  case type.to_sym
144
144
  when :DateTime
145
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
146
- Time.strptime(value, format).utc.to_datetime
145
+ DateTime.parse(value)
147
146
  when :Date
148
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
149
- Time.strptime(value, format).utc.to_datetime.to_date
147
+ Date.parse(value)
150
148
  when :String
151
149
  value.to_s
152
150
  when :Integer
@@ -137,11 +137,9 @@ module AsposePdfCloud
137
137
  def _deserialize(type, value)
138
138
  case type.to_sym
139
139
  when :DateTime
140
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
141
- Time.strptime(value, format).utc.to_datetime
140
+ DateTime.parse(value)
142
141
  when :Date
143
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
144
- Time.strptime(value, format).utc.to_datetime.to_date
142
+ Date.parse(value)
145
143
  when :String
146
144
  value.to_s
147
145
  when :Integer
@@ -167,11 +167,9 @@ module AsposePdfCloud
167
167
  def _deserialize(type, value)
168
168
  case type.to_sym
169
169
  when :DateTime
170
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
171
- Time.strptime(value, format).utc.to_datetime
170
+ DateTime.parse(value)
172
171
  when :Date
173
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
174
- Time.strptime(value, format).utc.to_datetime.to_date
172
+ Date.parse(value)
175
173
  when :String
176
174
  value.to_s
177
175
  when :Integer
@@ -220,12 +220,17 @@ module AsposePdfCloud
220
220
  # @return Array for valid properies with the reasons
221
221
  def list_invalid_properties
222
222
  invalid_properties = Array.new
223
+ if @rect.nil?
224
+ invalid_properties.push("invalid value for 'rect', rect cannot be nil.")
225
+ end
226
+
223
227
  return invalid_properties
224
228
  end
225
229
 
226
230
  # Check to see if the all the properties in the model are valid
227
231
  # @return true if the model is valid
228
232
  def valid?
233
+ return false if @rect.nil?
229
234
  return true
230
235
  end
231
236
 
@@ -293,11 +298,9 @@ module AsposePdfCloud
293
298
  def _deserialize(type, value)
294
299
  case type.to_sym
295
300
  when :DateTime
296
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
297
- Time.strptime(value, format).utc.to_datetime
301
+ DateTime.parse(value)
298
302
  when :Date
299
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
300
- Time.strptime(value, format).utc.to_datetime.to_date
303
+ Date.parse(value)
301
304
  when :String
302
305
  value.to_s
303
306
  when :Integer
@@ -142,11 +142,9 @@ module AsposePdfCloud
142
142
  def _deserialize(type, value)
143
143
  case type.to_sym
144
144
  when :DateTime
145
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
146
- Time.strptime(value, format).utc.to_datetime
145
+ DateTime.parse(value)
147
146
  when :Date
148
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
149
- Time.strptime(value, format).utc.to_datetime.to_date
147
+ Date.parse(value)
150
148
  when :String
151
149
  value.to_s
152
150
  when :Integer
@@ -131,11 +131,9 @@ module AsposePdfCloud
131
131
  def _deserialize(type, value)
132
132
  case type.to_sym
133
133
  when :DateTime
134
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
135
- Time.strptime(value, format).utc.to_datetime
134
+ DateTime.parse(value)
136
135
  when :Date
137
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
138
- Time.strptime(value, format).utc.to_datetime.to_date
136
+ Date.parse(value)
139
137
  when :String
140
138
  value.to_s
141
139
  when :Integer
@@ -142,11 +142,9 @@ module AsposePdfCloud
142
142
  def _deserialize(type, value)
143
143
  case type.to_sym
144
144
  when :DateTime
145
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
146
- Time.strptime(value, format).utc.to_datetime
145
+ DateTime.parse(value)
147
146
  when :Date
148
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
149
- Time.strptime(value, format).utc.to_datetime.to_date
147
+ Date.parse(value)
150
148
  when :String
151
149
  value.to_s
152
150
  when :Integer
@@ -224,11 +224,9 @@ module AsposePdfCloud
224
224
  def _deserialize(type, value)
225
225
  case type.to_sym
226
226
  when :DateTime
227
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
228
- Time.strptime(value, format).utc.to_datetime
227
+ DateTime.parse(value)
229
228
  when :Date
230
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
231
- Time.strptime(value, format).utc.to_datetime.to_date
229
+ Date.parse(value)
232
230
  when :String
233
231
  value.to_s
234
232
  when :Integer
@@ -129,11 +129,9 @@ module AsposePdfCloud
129
129
  def _deserialize(type, value)
130
130
  case type.to_sym
131
131
  when :DateTime
132
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
133
- Time.strptime(value, format).utc.to_datetime
132
+ DateTime.parse(value)
134
133
  when :Date
135
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
136
- Time.strptime(value, format).utc.to_datetime.to_date
134
+ Date.parse(value)
137
135
  when :String
138
136
  value.to_s
139
137
  when :Integer
@@ -182,12 +182,17 @@ module AsposePdfCloud
182
182
  # @return Array for valid properies with the reasons
183
183
  def list_invalid_properties
184
184
  invalid_properties = Array.new
185
+ if @rect.nil?
186
+ invalid_properties.push("invalid value for 'rect', rect cannot be nil.")
187
+ end
188
+
185
189
  return invalid_properties
186
190
  end
187
191
 
188
192
  # Check to see if the all the properties in the model are valid
189
193
  # @return true if the model is valid
190
194
  def valid?
195
+ return false if @rect.nil?
191
196
  return true
192
197
  end
193
198
 
@@ -251,11 +256,9 @@ module AsposePdfCloud
251
256
  def _deserialize(type, value)
252
257
  case type.to_sym
253
258
  when :DateTime
254
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
255
- Time.strptime(value, format).utc.to_datetime
259
+ DateTime.parse(value)
256
260
  when :Date
257
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
258
- Time.strptime(value, format).utc.to_datetime.to_date
261
+ Date.parse(value)
259
262
  when :String
260
263
  value.to_s
261
264
  when :Integer
@@ -142,11 +142,9 @@ module AsposePdfCloud
142
142
  def _deserialize(type, value)
143
143
  case type.to_sym
144
144
  when :DateTime
145
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
146
- Time.strptime(value, format).utc.to_datetime
145
+ DateTime.parse(value)
147
146
  when :Date
148
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
149
- Time.strptime(value, format).utc.to_datetime.to_date
147
+ Date.parse(value)
150
148
  when :String
151
149
  value.to_s
152
150
  when :Integer
@@ -131,11 +131,9 @@ module AsposePdfCloud
131
131
  def _deserialize(type, value)
132
132
  case type.to_sym
133
133
  when :DateTime
134
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
135
- Time.strptime(value, format).utc.to_datetime
134
+ DateTime.parse(value)
136
135
  when :Date
137
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
138
- Time.strptime(value, format).utc.to_datetime.to_date
136
+ Date.parse(value)
139
137
  when :String
140
138
  value.to_s
141
139
  when :Integer
@@ -142,11 +142,9 @@ module AsposePdfCloud
142
142
  def _deserialize(type, value)
143
143
  case type.to_sym
144
144
  when :DateTime
145
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
146
- Time.strptime(value, format).utc.to_datetime
145
+ DateTime.parse(value)
147
146
  when :Date
148
- format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
149
- Time.strptime(value, format).utc.to_datetime.to_date
147
+ Date.parse(value)
150
148
  when :String
151
149
  value.to_s
152
150
  when :Integer