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