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
@@ -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
|
@@ -263,12 +263,17 @@ module AsposePdfCloud
|
|
263
263
|
# @return Array for valid properies with the reasons
|
264
264
|
def list_invalid_properties
|
265
265
|
invalid_properties = Array.new
|
266
|
+
if @rows.nil?
|
267
|
+
invalid_properties.push("invalid value for 'rows', rows cannot be nil.")
|
268
|
+
end
|
269
|
+
|
266
270
|
return invalid_properties
|
267
271
|
end
|
268
272
|
|
269
273
|
# Check to see if the all the properties in the model are valid
|
270
274
|
# @return true if the model is valid
|
271
275
|
def valid?
|
276
|
+
return false if @rows.nil?
|
272
277
|
return true
|
273
278
|
end
|
274
279
|
|
@@ -341,11 +346,9 @@ module AsposePdfCloud
|
|
341
346
|
def _deserialize(type, value)
|
342
347
|
case type.to_sym
|
343
348
|
when :DateTime
|
344
|
-
|
345
|
-
Time.strptime(value, format).utc.to_datetime
|
349
|
+
DateTime.parse(value)
|
346
350
|
when :Date
|
347
|
-
|
348
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
351
|
+
Date.parse(value)
|
349
352
|
when :String
|
350
353
|
value.to_s
|
351
354
|
when :Integer
|
@@ -161,11 +161,9 @@ module AsposePdfCloud
|
|
161
161
|
def _deserialize(type, value)
|
162
162
|
case type.to_sym
|
163
163
|
when :DateTime
|
164
|
-
|
165
|
-
Time.strptime(value, format).utc.to_datetime
|
164
|
+
DateTime.parse(value)
|
166
165
|
when :Date
|
167
|
-
|
168
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
166
|
+
Date.parse(value)
|
169
167
|
when :String
|
170
168
|
value.to_s
|
171
169
|
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
|
@@ -227,12 +227,17 @@ module AsposePdfCloud
|
|
227
227
|
# @return Array for valid properies with the reasons
|
228
228
|
def list_invalid_properties
|
229
229
|
invalid_properties = Array.new
|
230
|
+
if @rect.nil?
|
231
|
+
invalid_properties.push("invalid value for 'rect', rect cannot be nil.")
|
232
|
+
end
|
233
|
+
|
230
234
|
return invalid_properties
|
231
235
|
end
|
232
236
|
|
233
237
|
# Check to see if the all the properties in the model are valid
|
234
238
|
# @return true if the model is valid
|
235
239
|
def valid?
|
240
|
+
return false if @rect.nil?
|
236
241
|
return true
|
237
242
|
end
|
238
243
|
|
@@ -301,11 +306,9 @@ module AsposePdfCloud
|
|
301
306
|
def _deserialize(type, value)
|
302
307
|
case type.to_sym
|
303
308
|
when :DateTime
|
304
|
-
|
305
|
-
Time.strptime(value, format).utc.to_datetime
|
309
|
+
DateTime.parse(value)
|
306
310
|
when :Date
|
307
|
-
|
308
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
311
|
+
Date.parse(value)
|
309
312
|
when :String
|
310
313
|
value.to_s
|
311
314
|
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
|
@@ -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.
|
@@ -58,7 +58,7 @@ module AsposePdfCloud
|
|
58
58
|
# Gets or sets string value which is used as stamp on the page.
|
59
59
|
attr_accessor :value
|
60
60
|
|
61
|
-
# Gets text properties of the stamp. See
|
61
|
+
# Gets text properties of the stamp. See TextState for details.
|
62
62
|
attr_accessor :text_state
|
63
63
|
|
64
64
|
# Gets or sets bottom margin of stamp.
|
@@ -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
|
@@ -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.
|
@@ -58,7 +58,7 @@ module AsposePdfCloud
|
|
58
58
|
# Gets or sets string value which is used as stamp on the page.
|
59
59
|
attr_accessor :value
|
60
60
|
|
61
|
-
# Gets text properties of the stamp. See
|
61
|
+
# Gets text properties of the stamp. See TextState for details.
|
62
62
|
attr_accessor :text_state
|
63
63
|
|
64
64
|
# Gets or sets left margin of stamp.
|
@@ -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
|
@@ -134,11 +134,9 @@ module AsposePdfCloud
|
|
134
134
|
def _deserialize(type, value)
|
135
135
|
case type.to_sym
|
136
136
|
when :DateTime
|
137
|
-
|
138
|
-
Time.strptime(value, format).utc.to_datetime
|
137
|
+
DateTime.parse(value)
|
139
138
|
when :Date
|
140
|
-
|
141
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
139
|
+
Date.parse(value)
|
142
140
|
when :String
|
143
141
|
value.to_s
|
144
142
|
when :Integer
|
@@ -40,13 +40,13 @@ module AsposePdfCloud
|
|
40
40
|
# Gets or sets a vertical alignment of text fragment.
|
41
41
|
attr_accessor :vertical_alignment
|
42
42
|
|
43
|
-
# Gets or sets text position for text, represented with
|
43
|
+
# Gets or sets text position for text, represented with TextRect object.
|
44
44
|
attr_accessor :position
|
45
45
|
|
46
|
-
# Gets text position for text, represented with
|
46
|
+
# Gets text position for text, represented with TextRect object. The YIndent of the Position structure represents baseline coordinate of the text fragment.
|
47
47
|
attr_accessor :baseline_position
|
48
48
|
|
49
|
-
# Gets or sets text state for the text that
|
49
|
+
# Gets or sets text state for the text that TextRect object represents.
|
50
50
|
attr_accessor :text_state
|
51
51
|
|
52
52
|
|
@@ -187,11 +187,9 @@ module AsposePdfCloud
|
|
187
187
|
def _deserialize(type, value)
|
188
188
|
case type.to_sym
|
189
189
|
when :DateTime
|
190
|
-
|
191
|
-
Time.strptime(value, format).utc.to_datetime
|
190
|
+
DateTime.parse(value)
|
192
191
|
when :Date
|
193
|
-
|
194
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
192
|
+
Date.parse(value)
|
195
193
|
when :String
|
196
194
|
value.to_s
|
197
195
|
when :Integer
|
@@ -119,11 +119,9 @@ module AsposePdfCloud
|
|
119
119
|
def _deserialize(type, value)
|
120
120
|
case type.to_sym
|
121
121
|
when :DateTime
|
122
|
-
|
123
|
-
Time.strptime(value, format).utc.to_datetime
|
122
|
+
DateTime.parse(value)
|
124
123
|
when :Date
|
125
|
-
|
126
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
124
|
+
Date.parse(value)
|
127
125
|
when :String
|
128
126
|
value.to_s
|
129
127
|
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
|
@@ -101,10 +101,18 @@ module AsposePdfCloud
|
|
101
101
|
invalid_properties.push("invalid value for 'old_value', old_value cannot be nil.")
|
102
102
|
end
|
103
103
|
|
104
|
+
if @old_value.to_s.length < 1
|
105
|
+
invalid_properties.push("invalid value for 'old_value', the character length must be great than or equal to 1.")
|
106
|
+
end
|
107
|
+
|
104
108
|
if @new_value.nil?
|
105
109
|
invalid_properties.push("invalid value for 'new_value', new_value cannot be nil.")
|
106
110
|
end
|
107
111
|
|
112
|
+
if @new_value.to_s.length < 1
|
113
|
+
invalid_properties.push("invalid value for 'new_value', the character length must be great than or equal to 1.")
|
114
|
+
end
|
115
|
+
|
108
116
|
if @regex.nil?
|
109
117
|
invalid_properties.push("invalid value for 'regex', regex cannot be nil.")
|
110
118
|
end
|
@@ -116,11 +124,41 @@ module AsposePdfCloud
|
|
116
124
|
# @return true if the model is valid
|
117
125
|
def valid?
|
118
126
|
return false if @old_value.nil?
|
127
|
+
return false if @old_value.to_s.length < 1
|
119
128
|
return false if @new_value.nil?
|
129
|
+
return false if @new_value.to_s.length < 1
|
120
130
|
return false if @regex.nil?
|
121
131
|
return true
|
122
132
|
end
|
123
133
|
|
134
|
+
# Custom attribute writer method with validation
|
135
|
+
# @param [Object] old_value Value to be assigned
|
136
|
+
def old_value=(old_value)
|
137
|
+
if old_value.nil?
|
138
|
+
fail ArgumentError, "old_value cannot be nil"
|
139
|
+
end
|
140
|
+
|
141
|
+
if old_value.to_s.length < 1
|
142
|
+
fail ArgumentError, "invalid value for 'old_value', the character length must be great than or equal to 1."
|
143
|
+
end
|
144
|
+
|
145
|
+
@old_value = old_value
|
146
|
+
end
|
147
|
+
|
148
|
+
# Custom attribute writer method with validation
|
149
|
+
# @param [Object] new_value Value to be assigned
|
150
|
+
def new_value=(new_value)
|
151
|
+
if new_value.nil?
|
152
|
+
fail ArgumentError, "new_value cannot be nil"
|
153
|
+
end
|
154
|
+
|
155
|
+
if new_value.to_s.length < 1
|
156
|
+
fail ArgumentError, "invalid value for 'new_value', the character length must be great than or equal to 1."
|
157
|
+
end
|
158
|
+
|
159
|
+
@new_value = new_value
|
160
|
+
end
|
161
|
+
|
124
162
|
# Checks equality by comparing each attribute.
|
125
163
|
# @param [Object] Object to be compared
|
126
164
|
def ==(o)
|
@@ -172,11 +210,9 @@ module AsposePdfCloud
|
|
172
210
|
def _deserialize(type, value)
|
173
211
|
case type.to_sym
|
174
212
|
when :DateTime
|
175
|
-
|
176
|
-
Time.strptime(value, format).utc.to_datetime
|
213
|
+
DateTime.parse(value)
|
177
214
|
when :Date
|
178
|
-
|
179
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
215
|
+
Date.parse(value)
|
180
216
|
when :String
|
181
217
|
value.to_s
|
182
218
|
when :Integer
|
@@ -28,6 +28,7 @@ module AsposePdfCloud
|
|
28
28
|
# A list of text replacement settings.
|
29
29
|
attr_accessor :text_replaces
|
30
30
|
|
31
|
+
# Name of font to use if requested font is not embedded into document.
|
31
32
|
attr_accessor :default_font
|
32
33
|
|
33
34
|
# The index of first match to be replaced.
|
@@ -153,11 +154,9 @@ module AsposePdfCloud
|
|
153
154
|
def _deserialize(type, value)
|
154
155
|
case type.to_sym
|
155
156
|
when :DateTime
|
156
|
-
|
157
|
-
Time.strptime(value, format).utc.to_datetime
|
157
|
+
DateTime.parse(value)
|
158
158
|
when :Date
|
159
|
-
|
160
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
159
|
+
Date.parse(value)
|
161
160
|
when :String
|
162
161
|
value.to_s
|
163
162
|
when :Integer
|