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.
- checksums.yaml +4 -4
- data/README.md +39 -26
- data/docs/Annotation.md +1 -1
- data/docs/AnnotationInfo.md +2 -2
- data/docs/Attachment.md +1 -1
- data/docs/Bookmark.md +25 -0
- data/docs/{FileExistResponse.md → BookmarkResponse.md} +3 -3
- data/docs/Bookmarks.md +10 -0
- data/docs/{DiscUsageResponse.md → BookmarksResponse.md} +3 -3
- data/docs/CaretAnnotation.md +1 -1
- data/docs/CellRecognized.md +1 -1
- data/docs/CircleAnnotation.md +1 -1
- data/docs/CommonFigureAnnotation.md +1 -1
- data/docs/DiscUsage.md +3 -3
- data/docs/DocumentPrivilege.md +1 -1
- data/docs/DocumentProperty.md +1 -1
- data/docs/Error.md +12 -0
- data/docs/ErrorDetails.md +10 -0
- data/docs/Field.md +1 -1
- data/docs/Fields.md +1 -1
- data/docs/FileAttachmentAnnotation.md +1 -1
- data/docs/FileVersion.md +8 -8
- data/docs/FileVersions.md +9 -0
- data/docs/FilesList.md +9 -0
- data/docs/FilesUploadResult.md +10 -0
- data/docs/FreeTextAnnotation.md +2 -2
- data/docs/GraphInfo.md +2 -2
- data/docs/HighlightAnnotation.md +1 -1
- data/docs/Image.md +3 -3
- data/docs/ImageFooter.md +1 -1
- data/docs/ImageHeader.md +1 -1
- data/docs/ImageStamp.md +1 -1
- data/docs/InkAnnotation.md +1 -1
- data/docs/LineAnnotation.md +3 -3
- data/docs/LinkAnnotation.md +4 -4
- data/docs/MarkupAnnotation.md +1 -1
- data/docs/MovieAnnotation.md +1 -1
- data/docs/ObjectExist.md +10 -0
- data/docs/Page.md +1 -1
- data/docs/PageNumberStamp.md +1 -1
- data/docs/PdfApi.md +560 -328
- data/docs/PdfPageStamp.md +1 -1
- data/docs/PolyAnnotation.md +2 -2
- data/docs/PolyLineAnnotation.md +2 -2
- data/docs/PolygonAnnotation.md +2 -2
- data/docs/PopupAnnotation.md +1 -1
- data/docs/PopupAnnotationWithParent.md +1 -1
- data/docs/RedactionAnnotation.md +1 -1
- data/docs/ScreenAnnotation.md +1 -1
- data/docs/Signature.md +1 -1
- data/docs/SignatureVerifyResponse.md +1 -1
- data/docs/SoundAnnotation.md +2 -2
- data/docs/SplitResultDocument.md +1 -1
- data/docs/SquareAnnotation.md +1 -1
- data/docs/SquigglyAnnotation.md +1 -1
- data/docs/Stamp.md +2 -2
- data/docs/StampAnnotation.md +1 -1
- data/docs/StampBase.md +1 -1
- data/docs/StampInfo.md +1 -1
- data/docs/StorageExist.md +9 -0
- data/docs/StorageFile.md +13 -0
- data/docs/StrikeOutAnnotation.md +1 -1
- data/docs/Table.md +1 -1
- data/docs/TextAnnotation.md +1 -1
- data/docs/TextFooter.md +2 -2
- data/docs/TextHeader.md +2 -2
- data/docs/TextRect.md +3 -3
- data/docs/TextReplaceListRequest.md +1 -1
- data/docs/TextReplaceResponse.md +1 -1
- data/docs/TextStamp.md +2 -2
- data/docs/UnderlineAnnotation.md +1 -1
- data/docs/WordCountResponse.md +1 -1
- data/lib/aspose_pdf_cloud.rb +12 -8
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +2521 -1650
- data/lib/aspose_pdf_cloud/api_client.rb +2 -54
- data/lib/aspose_pdf_cloud/configuration.rb +2 -5
- data/lib/aspose_pdf_cloud/models/annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/annotation_info.rb +12 -4
- data/lib/aspose_pdf_cloud/models/annotations_info.rb +2 -4
- data/lib/aspose_pdf_cloud/models/annotations_info_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/aspose_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/attachment.rb +7 -4
- data/lib/aspose_pdf_cloud/models/attachment_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/attachments.rb +2 -4
- data/lib/aspose_pdf_cloud/models/attachments_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/{append_document.rb → bookmark.rb} +167 -42
- data/lib/aspose_pdf_cloud/models/{storage_exist_response.rb → bookmark_response.rb} +12 -13
- data/lib/aspose_pdf_cloud/models/{files_response.rb → bookmarks.rb} +22 -36
- data/lib/aspose_pdf_cloud/models/{disc_usage_response.rb → bookmarks_response.rb} +12 -13
- data/lib/aspose_pdf_cloud/models/border_info.rb +2 -4
- data/lib/aspose_pdf_cloud/models/caret_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/caret_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/caret_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/caret_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/cell.rb +2 -4
- data/lib/aspose_pdf_cloud/models/cell_recognized.rb +3 -5
- data/lib/aspose_pdf_cloud/models/circle_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/circle_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/circle_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/circle_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/color.rb +2 -4
- data/lib/aspose_pdf_cloud/models/common_figure_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/disc_usage.rb +5 -5
- data/lib/aspose_pdf_cloud/models/document.rb +2 -4
- data/lib/aspose_pdf_cloud/models/document_page_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/document_pages_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/document_privilege.rb +3 -5
- data/lib/aspose_pdf_cloud/models/document_properties.rb +2 -4
- data/lib/aspose_pdf_cloud/models/document_properties_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/document_property.rb +7 -4
- data/lib/aspose_pdf_cloud/models/document_property_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/document_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/{file_exist_response.rb → error.rb} +31 -27
- data/lib/aspose_pdf_cloud/models/error_details.rb +214 -0
- data/lib/aspose_pdf_cloud/models/field.rb +7 -4
- data/lib/aspose_pdf_cloud/models/field_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/fields.rb +7 -4
- data/lib/aspose_pdf_cloud/models/fields_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/file_attachment_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/file_attachment_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/file_attachment_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/file_attachment_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/file_version.rb +15 -5
- data/lib/aspose_pdf_cloud/models/file_versions.rb +201 -0
- data/lib/aspose_pdf_cloud/models/files_list.rb +201 -0
- data/lib/aspose_pdf_cloud/models/files_upload_result.rb +213 -0
- data/lib/aspose_pdf_cloud/models/free_text_annotation.rb +12 -4
- data/lib/aspose_pdf_cloud/models/free_text_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/free_text_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/free_text_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/graph_info.rb +4 -6
- data/lib/aspose_pdf_cloud/models/highlight_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/highlight_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/highlight_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/highlight_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/image.rb +17 -4
- data/lib/aspose_pdf_cloud/models/image_footer.rb +3 -5
- data/lib/aspose_pdf_cloud/models/image_header.rb +3 -5
- data/lib/aspose_pdf_cloud/models/image_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/image_stamp.rb +3 -5
- data/lib/aspose_pdf_cloud/models/image_template.rb +21 -4
- data/lib/aspose_pdf_cloud/models/image_templates_request.rb +2 -4
- data/lib/aspose_pdf_cloud/models/images.rb +2 -4
- data/lib/aspose_pdf_cloud/models/images_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/ink_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/ink_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/ink_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/ink_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/line_annotation.rb +17 -4
- data/lib/aspose_pdf_cloud/models/line_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/line_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/line_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/link.rb +2 -4
- data/lib/aspose_pdf_cloud/models/link_annotation.rb +41 -4
- data/lib/aspose_pdf_cloud/models/link_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/link_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/link_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/link_element.rb +2 -4
- data/lib/aspose_pdf_cloud/models/margin_info.rb +2 -4
- data/lib/aspose_pdf_cloud/models/markup_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/merge_documents.rb +2 -4
- data/lib/aspose_pdf_cloud/models/movie_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/movie_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/movie_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/movie_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/{file_exist.rb → object_exist.rb} +16 -16
- data/lib/aspose_pdf_cloud/models/optimize_options.rb +2 -4
- data/lib/aspose_pdf_cloud/models/page.rb +7 -4
- data/lib/aspose_pdf_cloud/models/page_number_stamp.rb +3 -5
- data/lib/aspose_pdf_cloud/models/page_word_count.rb +2 -4
- data/lib/aspose_pdf_cloud/models/pages.rb +2 -4
- data/lib/aspose_pdf_cloud/models/paragraph.rb +2 -4
- data/lib/aspose_pdf_cloud/models/pdf_page_stamp.rb +3 -5
- data/lib/aspose_pdf_cloud/models/point.rb +2 -4
- data/lib/aspose_pdf_cloud/models/poly_annotation.rb +12 -4
- data/lib/aspose_pdf_cloud/models/poly_line_annotation.rb +12 -4
- data/lib/aspose_pdf_cloud/models/poly_line_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/poly_line_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/poly_line_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/polygon_annotation.rb +12 -4
- data/lib/aspose_pdf_cloud/models/polygon_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/polygon_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/polygon_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/popup_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/popup_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/popup_annotation_with_parent.rb +7 -4
- data/lib/aspose_pdf_cloud/models/popup_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/popup_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/position.rb +2 -4
- data/lib/aspose_pdf_cloud/models/rectangle.rb +2 -4
- data/lib/aspose_pdf_cloud/models/redaction_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/redaction_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/redaction_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/redaction_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/row.rb +2 -4
- data/lib/aspose_pdf_cloud/models/row_recognized.rb +2 -4
- data/lib/aspose_pdf_cloud/models/screen_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/screen_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/screen_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/screen_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/segment.rb +21 -4
- data/lib/aspose_pdf_cloud/models/signature.rb +22 -5
- data/lib/aspose_pdf_cloud/models/signature_verify_response.rb +7 -4
- data/lib/aspose_pdf_cloud/models/sound_annotation.rb +31 -4
- data/lib/aspose_pdf_cloud/models/sound_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/sound_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/sound_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/split_result.rb +2 -4
- data/lib/aspose_pdf_cloud/models/split_result_document.rb +7 -4
- data/lib/aspose_pdf_cloud/models/split_result_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/square_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/square_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/square_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/square_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/squiggly_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/squiggly_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/squiggly_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/squiggly_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/stamp.rb +4 -6
- data/lib/aspose_pdf_cloud/models/stamp_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/stamp_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/stamp_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/stamp_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/stamp_base.rb +3 -5
- data/lib/aspose_pdf_cloud/models/stamp_info.rb +7 -4
- data/lib/aspose_pdf_cloud/models/stamps_info.rb +2 -4
- data/lib/aspose_pdf_cloud/models/stamps_info_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/storage_exist.rb +204 -0
- data/lib/aspose_pdf_cloud/models/{file.rb → storage_file.rb} +9 -6
- data/lib/aspose_pdf_cloud/models/strike_out_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/strike_out_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/strike_out_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/strike_out_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/table.rb +7 -4
- data/lib/aspose_pdf_cloud/models/table_recognized.rb +2 -4
- data/lib/aspose_pdf_cloud/models/table_recognized_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/tables_recognized.rb +2 -4
- data/lib/aspose_pdf_cloud/models/tables_recognized_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/text_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_footer.rb +4 -6
- data/lib/aspose_pdf_cloud/models/text_header.rb +4 -6
- data/lib/aspose_pdf_cloud/models/text_line.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_rect.rb +5 -7
- data/lib/aspose_pdf_cloud/models/text_rects.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_rects_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_replace.rb +40 -4
- data/lib/aspose_pdf_cloud/models/text_replace_list_request.rb +3 -4
- data/lib/aspose_pdf_cloud/models/text_replace_response.rb +7 -4
- data/lib/aspose_pdf_cloud/models/text_stamp.rb +4 -6
- data/lib/aspose_pdf_cloud/models/text_state.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_style.rb +2 -4
- data/lib/aspose_pdf_cloud/models/underline_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/underline_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/underline_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/underline_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/word_count.rb +2 -4
- data/lib/aspose_pdf_cloud/models/word_count_response.rb +3 -5
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/test/pdf_tests.rb +175 -71
- data/test_data/sample.tex +105 -0
- metadata +27 -18
- data/docs/AppendDocument.md +0 -11
- data/docs/File.md +0 -13
- data/docs/FileExist.md +0 -10
- data/docs/FileVersionsResponse.md +0 -11
- data/docs/FilesResponse.md +0 -11
- data/docs/StorageExistResponse.md +0 -11
- data/lib/aspose_pdf_cloud/models/file_versions_response.rb +0 -227
@@ -37,7 +37,7 @@ module AsposePdfCloud
|
|
37
37
|
# Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
|
38
38
|
attr_accessor :opacity
|
39
39
|
|
40
|
-
# Sets or gets the rotation of stamp content according
|
40
|
+
# Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
|
41
41
|
attr_accessor :rotate
|
42
42
|
|
43
43
|
# Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
|
@@ -259,11 +259,9 @@ module AsposePdfCloud
|
|
259
259
|
def _deserialize(type, value)
|
260
260
|
case type.to_sym
|
261
261
|
when :DateTime
|
262
|
-
|
263
|
-
Time.strptime(value, format).utc.to_datetime
|
262
|
+
DateTime.parse(value)
|
264
263
|
when :Date
|
265
|
-
|
266
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
264
|
+
Date.parse(value)
|
267
265
|
when :String
|
268
266
|
value.to_s
|
269
267
|
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
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
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
|
@@ -37,7 +37,7 @@ module AsposePdfCloud
|
|
37
37
|
# Gets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.
|
38
38
|
attr_accessor :opacity
|
39
39
|
|
40
|
-
# Sets or gets the rotation of stamp content according
|
40
|
+
# Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
|
41
41
|
attr_accessor :rotate
|
42
42
|
|
43
43
|
# Gets or sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
|
@@ -279,11 +279,9 @@ module AsposePdfCloud
|
|
279
279
|
def _deserialize(type, value)
|
280
280
|
case type.to_sym
|
281
281
|
when :DateTime
|
282
|
-
|
283
|
-
Time.strptime(value, format).utc.to_datetime
|
282
|
+
DateTime.parse(value)
|
284
283
|
when :Date
|
285
|
-
|
286
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
284
|
+
Date.parse(value)
|
287
285
|
when :String
|
288
286
|
value.to_s
|
289
287
|
when :Integer
|
@@ -130,6 +130,10 @@ module AsposePdfCloud
|
|
130
130
|
invalid_properties.push("invalid value for 'image_path', image_path cannot be nil.")
|
131
131
|
end
|
132
132
|
|
133
|
+
if @image_path.to_s.length < 1
|
134
|
+
invalid_properties.push("invalid value for 'image_path', the character length must be great than or equal to 1.")
|
135
|
+
end
|
136
|
+
|
133
137
|
if @image_src_type.nil?
|
134
138
|
invalid_properties.push("invalid value for 'image_src_type', image_src_type cannot be nil.")
|
135
139
|
end
|
@@ -141,10 +145,25 @@ module AsposePdfCloud
|
|
141
145
|
# @return true if the model is valid
|
142
146
|
def valid?
|
143
147
|
return false if @image_path.nil?
|
148
|
+
return false if @image_path.to_s.length < 1
|
144
149
|
return false if @image_src_type.nil?
|
145
150
|
return true
|
146
151
|
end
|
147
152
|
|
153
|
+
# Custom attribute writer method with validation
|
154
|
+
# @param [Object] image_path Value to be assigned
|
155
|
+
def image_path=(image_path)
|
156
|
+
if image_path.nil?
|
157
|
+
fail ArgumentError, "image_path cannot be nil"
|
158
|
+
end
|
159
|
+
|
160
|
+
if image_path.to_s.length < 1
|
161
|
+
fail ArgumentError, "invalid value for 'image_path', the character length must be great than or equal to 1."
|
162
|
+
end
|
163
|
+
|
164
|
+
@image_path = image_path
|
165
|
+
end
|
166
|
+
|
148
167
|
# Checks equality by comparing each attribute.
|
149
168
|
# @param [Object] Object to be compared
|
150
169
|
def ==(o)
|
@@ -200,11 +219,9 @@ module AsposePdfCloud
|
|
200
219
|
def _deserialize(type, value)
|
201
220
|
case type.to_sym
|
202
221
|
when :DateTime
|
203
|
-
|
204
|
-
Time.strptime(value, format).utc.to_datetime
|
222
|
+
DateTime.parse(value)
|
205
223
|
when :Date
|
206
|
-
|
207
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
224
|
+
Date.parse(value)
|
208
225
|
when :String
|
209
226
|
value.to_s
|
210
227
|
when :Integer
|
@@ -149,11 +149,9 @@ module AsposePdfCloud
|
|
149
149
|
def _deserialize(type, value)
|
150
150
|
case type.to_sym
|
151
151
|
when :DateTime
|
152
|
-
|
153
|
-
Time.strptime(value, format).utc.to_datetime
|
152
|
+
DateTime.parse(value)
|
154
153
|
when :Date
|
155
|
-
|
156
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
154
|
+
Date.parse(value)
|
157
155
|
when :String
|
158
156
|
value.to_s
|
159
157
|
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
|
-
|
135
|
-
Time.strptime(value, format).utc.to_datetime
|
134
|
+
DateTime.parse(value)
|
136
135
|
when :Date
|
137
|
-
|
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
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
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
|
@@ -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
|
-
|
297
|
-
Time.strptime(value, format).utc.to_datetime
|
301
|
+
DateTime.parse(value)
|
298
302
|
when :Date
|
299
|
-
|
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
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
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
|
-
|
135
|
-
Time.strptime(value, format).utc.to_datetime
|
134
|
+
DateTime.parse(value)
|
136
135
|
when :Date
|
137
|
-
|
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
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
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
|
@@ -308,12 +308,27 @@ module AsposePdfCloud
|
|
308
308
|
# @return Array for valid properies with the reasons
|
309
309
|
def list_invalid_properties
|
310
310
|
invalid_properties = Array.new
|
311
|
+
if @rect.nil?
|
312
|
+
invalid_properties.push("invalid value for 'rect', rect cannot be nil.")
|
313
|
+
end
|
314
|
+
|
315
|
+
if @starting.nil?
|
316
|
+
invalid_properties.push("invalid value for 'starting', starting cannot be nil.")
|
317
|
+
end
|
318
|
+
|
319
|
+
if @ending.nil?
|
320
|
+
invalid_properties.push("invalid value for 'ending', ending cannot be nil.")
|
321
|
+
end
|
322
|
+
|
311
323
|
return invalid_properties
|
312
324
|
end
|
313
325
|
|
314
326
|
# Check to see if the all the properties in the model are valid
|
315
327
|
# @return true if the model is valid
|
316
328
|
def valid?
|
329
|
+
return false if @rect.nil?
|
330
|
+
return false if @starting.nil?
|
331
|
+
return false if @ending.nil?
|
317
332
|
return true
|
318
333
|
end
|
319
334
|
|
@@ -391,11 +406,9 @@ module AsposePdfCloud
|
|
391
406
|
def _deserialize(type, value)
|
392
407
|
case type.to_sym
|
393
408
|
when :DateTime
|
394
|
-
|
395
|
-
Time.strptime(value, format).utc.to_datetime
|
409
|
+
DateTime.parse(value)
|
396
410
|
when :Date
|
397
|
-
|
398
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
411
|
+
Date.parse(value)
|
399
412
|
when :String
|
400
413
|
value.to_s
|
401
414
|
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
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
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
|
-
|
135
|
-
Time.strptime(value, format).utc.to_datetime
|
134
|
+
DateTime.parse(value)
|
136
135
|
when :Date
|
137
|
-
|
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
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
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
|
@@ -147,11 +147,9 @@ module AsposePdfCloud
|
|
147
147
|
def _deserialize(type, value)
|
148
148
|
case type.to_sym
|
149
149
|
when :DateTime
|
150
|
-
|
151
|
-
Time.strptime(value, format).utc.to_datetime
|
150
|
+
DateTime.parse(value)
|
152
151
|
when :Date
|
153
|
-
|
154
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
152
|
+
Date.parse(value)
|
155
153
|
when :String
|
156
154
|
value.to_s
|
157
155
|
when :Integer
|
@@ -111,15 +111,54 @@ module AsposePdfCloud
|
|
111
111
|
# @return Array for valid properies with the reasons
|
112
112
|
def list_invalid_properties
|
113
113
|
invalid_properties = Array.new
|
114
|
+
if @action_type.nil?
|
115
|
+
invalid_properties.push("invalid value for 'action_type', action_type cannot be nil.")
|
116
|
+
end
|
117
|
+
|
118
|
+
if @action.nil?
|
119
|
+
invalid_properties.push("invalid value for 'action', action cannot be nil.")
|
120
|
+
end
|
121
|
+
|
122
|
+
if @action.to_s.length < 1
|
123
|
+
invalid_properties.push("invalid value for 'action', the character length must be great than or equal to 1.")
|
124
|
+
end
|
125
|
+
|
126
|
+
if @highlighting.nil?
|
127
|
+
invalid_properties.push("invalid value for 'highlighting', highlighting cannot be nil.")
|
128
|
+
end
|
129
|
+
|
130
|
+
if @rect.nil?
|
131
|
+
invalid_properties.push("invalid value for 'rect', rect cannot be nil.")
|
132
|
+
end
|
133
|
+
|
114
134
|
return invalid_properties
|
115
135
|
end
|
116
136
|
|
117
137
|
# Check to see if the all the properties in the model are valid
|
118
138
|
# @return true if the model is valid
|
119
139
|
def valid?
|
140
|
+
return false if @action_type.nil?
|
141
|
+
return false if @action.nil?
|
142
|
+
return false if @action.to_s.length < 1
|
143
|
+
return false if @highlighting.nil?
|
144
|
+
return false if @rect.nil?
|
120
145
|
return true
|
121
146
|
end
|
122
147
|
|
148
|
+
# Custom attribute writer method with validation
|
149
|
+
# @param [Object] action Value to be assigned
|
150
|
+
def action=(action)
|
151
|
+
if action.nil?
|
152
|
+
fail ArgumentError, "action cannot be nil"
|
153
|
+
end
|
154
|
+
|
155
|
+
if action.to_s.length < 1
|
156
|
+
fail ArgumentError, "invalid value for 'action', the character length must be great than or equal to 1."
|
157
|
+
end
|
158
|
+
|
159
|
+
@action = action
|
160
|
+
end
|
161
|
+
|
123
162
|
# Checks equality by comparing each attribute.
|
124
163
|
# @param [Object] Object to be compared
|
125
164
|
def ==(o)
|
@@ -173,11 +212,9 @@ module AsposePdfCloud
|
|
173
212
|
def _deserialize(type, value)
|
174
213
|
case type.to_sym
|
175
214
|
when :DateTime
|
176
|
-
|
177
|
-
Time.strptime(value, format).utc.to_datetime
|
215
|
+
DateTime.parse(value)
|
178
216
|
when :Date
|
179
|
-
|
180
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
217
|
+
Date.parse(value)
|
181
218
|
when :String
|
182
219
|
value.to_s
|
183
220
|
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
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
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
|
-
|
135
|
-
Time.strptime(value, format).utc.to_datetime
|
134
|
+
DateTime.parse(value)
|
136
135
|
when :Date
|
137
|
-
|
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
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
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
|