cloudmersive-convert-api-client 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/{client/Gemfile → Gemfile} +0 -0
- data/{client/README.md → README.md} +49 -4
- data/{client/Rakefile → Rakefile} +0 -0
- data/{client/cloudmersive-convert-api-client.gemspec → cloudmersive-convert-api-client.gemspec} +0 -0
- data/{client/docs → docs}/CompareDocumentApi.md +0 -0
- data/{client/docs → docs}/ConvertDataApi.md +0 -0
- data/{client/docs → docs}/ConvertDocumentApi.md +0 -0
- data/{client/docs → docs}/ConvertImageApi.md +113 -0
- data/{client/docs → docs}/ConvertTemplateApi.md +0 -0
- data/{client/docs → docs}/ConvertWebApi.md +0 -0
- data/{client/docs → docs}/ConvertedPngPage.md +0 -0
- data/{client/docs → docs}/DocumentValidationError.md +0 -0
- data/{client/docs → docs}/DocumentValidationResult.md +0 -0
- data/docs/DocxBody.md +10 -0
- data/docs/DocxCellStyle.md +11 -0
- data/{client/docs → docs}/DocxFooter.md +1 -0
- data/{client/docs → docs}/DocxHeader.md +1 -0
- data/docs/DocxImage.md +20 -0
- data/docs/DocxInsertImageRequest.md +14 -0
- data/{client/docs → docs}/DocxInsertImageResponse.md +0 -0
- data/{client/docs → docs}/DocxParagraph.md +1 -0
- data/docs/DocxRemoveObjectRequest.md +10 -0
- data/docs/DocxRemoveObjectResponse.md +9 -0
- data/{client/docs → docs}/DocxRun.md +1 -0
- data/{client/docs → docs}/DocxSection.md +1 -0
- data/{client/docs → docs}/DocxSetFooterRequest.md +0 -0
- data/{client/docs → docs}/DocxSetFooterResponse.md +0 -0
- data/{client/docs → docs}/DocxSetHeaderRequest.md +0 -0
- data/{client/docs → docs}/DocxSetHeaderResponse.md +0 -0
- data/{client/docs → docs}/DocxStyle.md +1 -0
- data/{client/docs → docs}/DocxTable.md +2 -1
- data/{client/docs → docs}/DocxTableCell.md +1 -0
- data/{client/docs → docs}/DocxTableRow.md +1 -0
- data/{client/docs → docs}/DocxText.md +1 -0
- data/{client/docs → docs}/EditDocumentApi.md +605 -0
- data/docs/ExifValue.md +10 -0
- data/{client/docs → docs}/FinishEditingRequest.md +0 -0
- data/docs/GetDocxBodyRequest.md +9 -0
- data/docs/GetDocxBodyResponse.md +9 -0
- data/{client/docs → docs}/GetDocxHeadersAndFootersRequest.md +0 -0
- data/{client/docs → docs}/GetDocxHeadersAndFootersResponse.md +0 -0
- data/docs/GetDocxImagesRequest.md +9 -0
- data/docs/GetDocxImagesResponse.md +9 -0
- data/docs/GetDocxSectionsRequest.md +9 -0
- data/docs/GetDocxSectionsResponse.md +9 -0
- data/{client/docs → docs}/GetDocxStylesRequest.md +0 -0
- data/{client/docs → docs}/GetDocxStylesResponse.md +0 -0
- data/{client/docs → docs}/GetDocxTablesRequest.md +0 -0
- data/{client/docs → docs}/GetDocxTablesResponse.md +0 -0
- data/docs/GetImageInfoResult.md +24 -0
- data/docs/GetXlsxColumnsRequest.md +10 -0
- data/docs/GetXlsxColumnsResponse.md +9 -0
- data/docs/GetXlsxImagesRequest.md +10 -0
- data/docs/GetXlsxImagesResponse.md +9 -0
- data/docs/GetXlsxRowsAndCellsRequest.md +10 -0
- data/docs/GetXlsxRowsAndCellsResponse.md +9 -0
- data/docs/GetXlsxStylesRequest.md +9 -0
- data/docs/GetXlsxStylesResponse.md +9 -0
- data/docs/GetXlsxWorksheetsRequest.md +9 -0
- data/docs/GetXlsxWorksheetsResponse.md +9 -0
- data/{client/docs → docs}/HtmlMdResult.md +0 -0
- data/{client/docs → docs}/HtmlTemplateApplicationRequest.md +0 -0
- data/{client/docs → docs}/HtmlTemplateApplicationResponse.md +0 -0
- data/{client/docs → docs}/HtmlTemplateOperation.md +0 -0
- data/{client/docs → docs}/HtmlToOfficeRequest.md +0 -0
- data/{client/docs → docs}/HtmlToPdfRequest.md +0 -0
- data/docs/InsertDocxInsertParagraphRequest.md +12 -0
- data/docs/InsertDocxInsertParagraphResponse.md +9 -0
- data/docs/InsertDocxTablesRequest.md +12 -0
- data/{client/docs → docs}/InsertDocxTablesResponse.md +0 -0
- data/docs/InsertXlsxWorksheetRequest.md +10 -0
- data/docs/InsertXlsxWorksheetResponse.md +9 -0
- data/{client/docs → docs}/MergeDocumentApi.md +0 -0
- data/{client/docs → docs}/PdfToPngResult.md +0 -0
- data/{client/docs → docs}/RemoveDocxHeadersAndFootersRequest.md +0 -0
- data/{client/docs → docs}/RemoveDocxHeadersAndFootersResponse.md +0 -0
- data/{client/docs → docs}/ReplaceStringRequest.md +0 -0
- data/{client/docs → docs}/ScreenshotRequest.md +0 -0
- data/{client/docs → docs}/ValidateDocumentApi.md +0 -0
- data/{client/docs → docs}/ViewerResponse.md +0 -0
- data/{client/docs → docs}/ViewerToolsApi.md +0 -0
- data/docs/XlsxImage.md +12 -0
- data/docs/XlsxSpreadsheetCell.md +12 -0
- data/docs/XlsxSpreadsheetColumn.md +9 -0
- data/docs/XlsxSpreadsheetRow.md +9 -0
- data/docs/XlsxWorksheet.md +9 -0
- data/{client/git_push.sh → git_push.sh} +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client.rb +32 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/compare_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_data_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_image_api.rb +118 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_template_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_web_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/edit_document_api.rb +605 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/merge_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/validate_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/viewer_tools_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api_client.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api_error.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/configuration.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/converted_png_page.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/document_validation_error.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/document_validation_result.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/docx_body.rb +213 -0
- data/lib/cloudmersive-convert-api-client/models/docx_cell_style.rb +219 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_footer.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_header.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/docx_image.rb +309 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +27 -17
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_paragraph.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/docx_remove_object_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/docx_remove_object_response.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_run.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_section.rb +14 -4
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_header_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_header_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_style.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table.rb +12 -2
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table_cell.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table_row.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_text.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/exif_value.rb +206 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/finish_editing_request.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_body_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_body_response.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_images_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_images_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_sections_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_sections_response.rb +201 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/get_image_info_result.rb +350 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_response.rb +201 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_md_result.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_application_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_application_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_operation.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_to_office_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_request.rb +245 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_response.rb +199 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +245 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +0 -0
- data/{client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb → lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_request.rb} +10 -10
- data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_response.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/replace_string_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/screenshot_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/viewer_response.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_image.rb +229 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_cell.rb +228 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_column.rb +199 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_row.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_worksheet.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/version.rb +1 -1
- data/{client/spec → spec}/api/compare_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_data_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_image_api_spec.rb +25 -0
- data/{client/spec → spec}/api/convert_template_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_web_api_spec.rb +0 -0
- data/{client/spec → spec}/api/edit_document_api_spec.rb +132 -0
- data/{client/spec → spec}/api/merge_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/validate_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/viewer_tools_api_spec.rb +0 -0
- data/{client/spec → spec}/api_client_spec.rb +0 -0
- data/{client/spec → spec}/configuration_spec.rb +0 -0
- data/{client/spec → spec}/models/converted_png_page_spec.rb +0 -0
- data/{client/spec → spec}/models/document_validation_error_spec.rb +0 -0
- data/{client/spec → spec}/models/document_validation_result_spec.rb +0 -0
- data/spec/models/docx_body_spec.rb +54 -0
- data/spec/models/docx_cell_style_spec.rb +60 -0
- data/{client/spec → spec}/models/docx_footer_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_header_spec.rb +6 -0
- data/spec/models/docx_image_spec.rb +114 -0
- data/{client/spec → spec}/models/docx_insert_image_request_spec.rb +8 -2
- data/{client/spec → spec}/models/docx_insert_image_response_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_paragraph_spec.rb +6 -0
- data/spec/models/docx_remove_object_request_spec.rb +54 -0
- data/spec/models/docx_remove_object_response_spec.rb +48 -0
- data/{client/spec → spec}/models/docx_run_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_section_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_set_footer_request_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_set_footer_response_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_set_header_request_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_set_header_response_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_style_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_table_cell_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_table_row_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_table_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_text_spec.rb +6 -0
- data/spec/models/exif_value_spec.rb +54 -0
- data/{client/spec → spec}/models/finish_editing_request_spec.rb +0 -0
- data/spec/models/get_docx_body_request_spec.rb +48 -0
- data/spec/models/get_docx_body_response_spec.rb +48 -0
- data/{client/spec → spec}/models/get_docx_headers_and_footers_request_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_headers_and_footers_response_spec.rb +0 -0
- data/spec/models/get_docx_images_request_spec.rb +48 -0
- data/spec/models/get_docx_images_response_spec.rb +48 -0
- data/spec/models/get_docx_sections_request_spec.rb +48 -0
- data/spec/models/get_docx_sections_response_spec.rb +48 -0
- data/{client/spec → spec}/models/get_docx_styles_request_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_styles_response_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_tables_request_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_tables_response_spec.rb +0 -0
- data/spec/models/get_image_info_result_spec.rb +138 -0
- data/spec/models/get_xlsx_columns_request_spec.rb +54 -0
- data/spec/models/get_xlsx_columns_response_spec.rb +48 -0
- data/spec/models/get_xlsx_images_request_spec.rb +54 -0
- data/spec/models/get_xlsx_images_response_spec.rb +48 -0
- data/spec/models/get_xlsx_rows_and_cells_request_spec.rb +54 -0
- data/spec/models/get_xlsx_rows_and_cells_response_spec.rb +48 -0
- data/spec/models/get_xlsx_styles_request_spec.rb +48 -0
- data/spec/models/get_xlsx_styles_response_spec.rb +48 -0
- data/spec/models/get_xlsx_worksheets_request_spec.rb +48 -0
- data/spec/models/get_xlsx_worksheets_response_spec.rb +48 -0
- data/{client/spec → spec}/models/html_md_result_spec.rb +0 -0
- data/{client/spec → spec}/models/html_template_application_request_spec.rb +0 -0
- data/{client/spec → spec}/models/html_template_application_response_spec.rb +0 -0
- data/{client/spec → spec}/models/html_template_operation_spec.rb +0 -0
- data/{client/spec → spec}/models/html_to_office_request_spec.rb +0 -0
- data/{client/spec → spec}/models/html_to_pdf_request_spec.rb +0 -0
- data/spec/models/insert_docx_insert_paragraph_request_spec.rb +66 -0
- data/spec/models/insert_docx_insert_paragraph_response_spec.rb +48 -0
- data/{client/spec → spec}/models/insert_docx_tables_request_spec.rb +12 -0
- data/{client/spec → spec}/models/insert_docx_tables_response_spec.rb +0 -0
- data/spec/models/insert_xlsx_worksheet_request_spec.rb +54 -0
- data/spec/models/insert_xlsx_worksheet_response_spec.rb +48 -0
- data/{client/spec → spec}/models/pdf_to_png_result_spec.rb +0 -0
- data/{client/spec → spec}/models/remove_docx_headers_and_footers_request_spec.rb +0 -0
- data/{client/spec → spec}/models/remove_docx_headers_and_footers_response_spec.rb +0 -0
- data/{client/spec → spec}/models/replace_string_request_spec.rb +0 -0
- data/{client/spec → spec}/models/screenshot_request_spec.rb +0 -0
- data/{client/spec → spec}/models/viewer_response_spec.rb +0 -0
- data/spec/models/xlsx_image_spec.rb +66 -0
- data/spec/models/xlsx_spreadsheet_cell_spec.rb +66 -0
- data/spec/models/xlsx_spreadsheet_column_spec.rb +48 -0
- data/spec/models/xlsx_spreadsheet_row_spec.rb +48 -0
- data/spec/models/xlsx_worksheet_spec.rb +48 -0
- data/{client/spec → spec}/spec_helper.rb +0 -0
- metadata +261 -171
- data/LICENSE +0 -201
- data/build.ps1 +0 -12
- data/client/docs/DocxInsertImageRequest.md +0 -13
- data/client/docs/InsertDocxTablesRequest.md +0 -10
- data/cloudmersiveConvertApiClient-1.2.6.gem +0 -0
- data/cloudmersiveConvertApiClient-1.2.7.gem +0 -0
- data/packageconfig.json +0 -11
- data/swagger-codegen-cli.jar +0 -0
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module CloudmersiveConvertApiClient
|
16
16
|
# Footer in a Word Document (DOCX)
|
17
17
|
class DocxFooter
|
18
|
+
# The Path of the location of this object; leave blank for new tables
|
19
|
+
attr_accessor :path
|
20
|
+
|
18
21
|
# Paragraphs in this footer
|
19
22
|
attr_accessor :paragraphs
|
20
23
|
|
@@ -25,6 +28,7 @@ module CloudmersiveConvertApiClient
|
|
25
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
31
|
+
:'path' => :'Path',
|
28
32
|
:'paragraphs' => :'Paragraphs',
|
29
33
|
:'sections_with_footer' => :'SectionsWithFooter'
|
30
34
|
}
|
@@ -33,6 +37,7 @@ module CloudmersiveConvertApiClient
|
|
33
37
|
# Attribute type mapping.
|
34
38
|
def self.swagger_types
|
35
39
|
{
|
40
|
+
:'path' => :'String',
|
36
41
|
:'paragraphs' => :'Array<DocxParagraph>',
|
37
42
|
:'sections_with_footer' => :'Array<DocxSection>'
|
38
43
|
}
|
@@ -46,6 +51,10 @@ module CloudmersiveConvertApiClient
|
|
46
51
|
# convert string to symbol for hash key
|
47
52
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
53
|
|
54
|
+
if attributes.has_key?(:'Path')
|
55
|
+
self.path = attributes[:'Path']
|
56
|
+
end
|
57
|
+
|
49
58
|
if attributes.has_key?(:'Paragraphs')
|
50
59
|
if (value = attributes[:'Paragraphs']).is_a?(Array)
|
51
60
|
self.paragraphs = value
|
@@ -78,6 +87,7 @@ module CloudmersiveConvertApiClient
|
|
78
87
|
def ==(o)
|
79
88
|
return true if self.equal?(o)
|
80
89
|
self.class == o.class &&
|
90
|
+
path == o.path &&
|
81
91
|
paragraphs == o.paragraphs &&
|
82
92
|
sections_with_footer == o.sections_with_footer
|
83
93
|
end
|
@@ -91,7 +101,7 @@ module CloudmersiveConvertApiClient
|
|
91
101
|
# Calculates hash code according to all attributes.
|
92
102
|
# @return [Fixnum] Hash code
|
93
103
|
def hash
|
94
|
-
[paragraphs, sections_with_footer].hash
|
104
|
+
[path, paragraphs, sections_with_footer].hash
|
95
105
|
end
|
96
106
|
|
97
107
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module CloudmersiveConvertApiClient
|
16
16
|
# Header of a Word Document (DOCX)
|
17
17
|
class DocxHeader
|
18
|
+
# The Path of the location of this object; leave blank for new tables
|
19
|
+
attr_accessor :path
|
20
|
+
|
18
21
|
# Paragraphs in this header
|
19
22
|
attr_accessor :paragraphs
|
20
23
|
|
@@ -25,6 +28,7 @@ module CloudmersiveConvertApiClient
|
|
25
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
31
|
+
:'path' => :'Path',
|
28
32
|
:'paragraphs' => :'Paragraphs',
|
29
33
|
:'sections_with_header' => :'SectionsWithHeader'
|
30
34
|
}
|
@@ -33,6 +37,7 @@ module CloudmersiveConvertApiClient
|
|
33
37
|
# Attribute type mapping.
|
34
38
|
def self.swagger_types
|
35
39
|
{
|
40
|
+
:'path' => :'String',
|
36
41
|
:'paragraphs' => :'Array<DocxParagraph>',
|
37
42
|
:'sections_with_header' => :'Array<DocxSection>'
|
38
43
|
}
|
@@ -46,6 +51,10 @@ module CloudmersiveConvertApiClient
|
|
46
51
|
# convert string to symbol for hash key
|
47
52
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
53
|
|
54
|
+
if attributes.has_key?(:'Path')
|
55
|
+
self.path = attributes[:'Path']
|
56
|
+
end
|
57
|
+
|
49
58
|
if attributes.has_key?(:'Paragraphs')
|
50
59
|
if (value = attributes[:'Paragraphs']).is_a?(Array)
|
51
60
|
self.paragraphs = value
|
@@ -78,6 +87,7 @@ module CloudmersiveConvertApiClient
|
|
78
87
|
def ==(o)
|
79
88
|
return true if self.equal?(o)
|
80
89
|
self.class == o.class &&
|
90
|
+
path == o.path &&
|
81
91
|
paragraphs == o.paragraphs &&
|
82
92
|
sections_with_header == o.sections_with_header
|
83
93
|
end
|
@@ -91,7 +101,7 @@ module CloudmersiveConvertApiClient
|
|
91
101
|
# Calculates hash code according to all attributes.
|
92
102
|
# @return [Fixnum] Hash code
|
93
103
|
def hash
|
94
|
-
[paragraphs, sections_with_header].hash
|
104
|
+
[path, paragraphs, sections_with_header].hash
|
95
105
|
end
|
96
106
|
|
97
107
|
# Builds the object from hash
|
@@ -0,0 +1,309 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: unset
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CloudmersiveConvertApiClient
|
16
|
+
|
17
|
+
class DocxImage
|
18
|
+
# The Path of the location of this object; leave blank for new tables
|
19
|
+
attr_accessor :path
|
20
|
+
|
21
|
+
# The Name of the image
|
22
|
+
attr_accessor :image_name
|
23
|
+
|
24
|
+
# The Id of the image
|
25
|
+
attr_accessor :image_id
|
26
|
+
|
27
|
+
# The Description of the image
|
28
|
+
attr_accessor :image_description
|
29
|
+
|
30
|
+
# Width of the image in EMUs (English Metric Units); set to 0 to default to page width and aspect-ratio based height
|
31
|
+
attr_accessor :image_width
|
32
|
+
|
33
|
+
# Height of the image in EMUs (English Metric Units); set to 0 to default to page width and aspect-ratio based height
|
34
|
+
attr_accessor :image_height
|
35
|
+
|
36
|
+
# X (horizontal) offset of the image
|
37
|
+
attr_accessor :x_offset
|
38
|
+
|
39
|
+
# Y (vertical) offset of the image
|
40
|
+
attr_accessor :y_offset
|
41
|
+
|
42
|
+
# Read-only; internal ID for the image contents
|
43
|
+
attr_accessor :image_data_embed_id
|
44
|
+
|
45
|
+
# Read-only; image data MIME content-type
|
46
|
+
attr_accessor :image_data_content_type
|
47
|
+
|
48
|
+
# Read-only; internal file name/path for the image
|
49
|
+
attr_accessor :image_internal_file_name
|
50
|
+
|
51
|
+
# URL to the image contents; file is stored in an in-memory cache and will be deleted. Call Finish-Editing to get the contents.
|
52
|
+
attr_accessor :image_contents_url
|
53
|
+
|
54
|
+
# True if the image is inline with the text; false if it is floating
|
55
|
+
attr_accessor :inline
|
56
|
+
|
57
|
+
|
58
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
59
|
+
def self.attribute_map
|
60
|
+
{
|
61
|
+
:'path' => :'Path',
|
62
|
+
:'image_name' => :'ImageName',
|
63
|
+
:'image_id' => :'ImageId',
|
64
|
+
:'image_description' => :'ImageDescription',
|
65
|
+
:'image_width' => :'ImageWidth',
|
66
|
+
:'image_height' => :'ImageHeight',
|
67
|
+
:'x_offset' => :'XOffset',
|
68
|
+
:'y_offset' => :'YOffset',
|
69
|
+
:'image_data_embed_id' => :'ImageDataEmbedId',
|
70
|
+
:'image_data_content_type' => :'ImageDataContentType',
|
71
|
+
:'image_internal_file_name' => :'ImageInternalFileName',
|
72
|
+
:'image_contents_url' => :'ImageContentsURL',
|
73
|
+
:'inline' => :'Inline'
|
74
|
+
}
|
75
|
+
end
|
76
|
+
|
77
|
+
# Attribute type mapping.
|
78
|
+
def self.swagger_types
|
79
|
+
{
|
80
|
+
:'path' => :'String',
|
81
|
+
:'image_name' => :'String',
|
82
|
+
:'image_id' => :'Integer',
|
83
|
+
:'image_description' => :'String',
|
84
|
+
:'image_width' => :'Integer',
|
85
|
+
:'image_height' => :'Integer',
|
86
|
+
:'x_offset' => :'Integer',
|
87
|
+
:'y_offset' => :'Integer',
|
88
|
+
:'image_data_embed_id' => :'String',
|
89
|
+
:'image_data_content_type' => :'String',
|
90
|
+
:'image_internal_file_name' => :'String',
|
91
|
+
:'image_contents_url' => :'String',
|
92
|
+
:'inline' => :'BOOLEAN'
|
93
|
+
}
|
94
|
+
end
|
95
|
+
|
96
|
+
# Initializes the object
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
98
|
+
def initialize(attributes = {})
|
99
|
+
return unless attributes.is_a?(Hash)
|
100
|
+
|
101
|
+
# convert string to symbol for hash key
|
102
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
103
|
+
|
104
|
+
if attributes.has_key?(:'Path')
|
105
|
+
self.path = attributes[:'Path']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.has_key?(:'ImageName')
|
109
|
+
self.image_name = attributes[:'ImageName']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.has_key?(:'ImageId')
|
113
|
+
self.image_id = attributes[:'ImageId']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.has_key?(:'ImageDescription')
|
117
|
+
self.image_description = attributes[:'ImageDescription']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.has_key?(:'ImageWidth')
|
121
|
+
self.image_width = attributes[:'ImageWidth']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.has_key?(:'ImageHeight')
|
125
|
+
self.image_height = attributes[:'ImageHeight']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.has_key?(:'XOffset')
|
129
|
+
self.x_offset = attributes[:'XOffset']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.has_key?(:'YOffset')
|
133
|
+
self.y_offset = attributes[:'YOffset']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'ImageDataEmbedId')
|
137
|
+
self.image_data_embed_id = attributes[:'ImageDataEmbedId']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.has_key?(:'ImageDataContentType')
|
141
|
+
self.image_data_content_type = attributes[:'ImageDataContentType']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.has_key?(:'ImageInternalFileName')
|
145
|
+
self.image_internal_file_name = attributes[:'ImageInternalFileName']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.has_key?(:'ImageContentsURL')
|
149
|
+
self.image_contents_url = attributes[:'ImageContentsURL']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.has_key?(:'Inline')
|
153
|
+
self.inline = attributes[:'Inline']
|
154
|
+
end
|
155
|
+
|
156
|
+
end
|
157
|
+
|
158
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
159
|
+
# @return Array for valid properties with the reasons
|
160
|
+
def list_invalid_properties
|
161
|
+
invalid_properties = Array.new
|
162
|
+
return invalid_properties
|
163
|
+
end
|
164
|
+
|
165
|
+
# Check to see if the all the properties in the model are valid
|
166
|
+
# @return true if the model is valid
|
167
|
+
def valid?
|
168
|
+
return true
|
169
|
+
end
|
170
|
+
|
171
|
+
# Checks equality by comparing each attribute.
|
172
|
+
# @param [Object] Object to be compared
|
173
|
+
def ==(o)
|
174
|
+
return true if self.equal?(o)
|
175
|
+
self.class == o.class &&
|
176
|
+
path == o.path &&
|
177
|
+
image_name == o.image_name &&
|
178
|
+
image_id == o.image_id &&
|
179
|
+
image_description == o.image_description &&
|
180
|
+
image_width == o.image_width &&
|
181
|
+
image_height == o.image_height &&
|
182
|
+
x_offset == o.x_offset &&
|
183
|
+
y_offset == o.y_offset &&
|
184
|
+
image_data_embed_id == o.image_data_embed_id &&
|
185
|
+
image_data_content_type == o.image_data_content_type &&
|
186
|
+
image_internal_file_name == o.image_internal_file_name &&
|
187
|
+
image_contents_url == o.image_contents_url &&
|
188
|
+
inline == o.inline
|
189
|
+
end
|
190
|
+
|
191
|
+
# @see the `==` method
|
192
|
+
# @param [Object] Object to be compared
|
193
|
+
def eql?(o)
|
194
|
+
self == o
|
195
|
+
end
|
196
|
+
|
197
|
+
# Calculates hash code according to all attributes.
|
198
|
+
# @return [Fixnum] Hash code
|
199
|
+
def hash
|
200
|
+
[path, image_name, image_id, image_description, image_width, image_height, x_offset, y_offset, image_data_embed_id, image_data_content_type, image_internal_file_name, image_contents_url, inline].hash
|
201
|
+
end
|
202
|
+
|
203
|
+
# Builds the object from hash
|
204
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
205
|
+
# @return [Object] Returns the model itself
|
206
|
+
def build_from_hash(attributes)
|
207
|
+
return nil unless attributes.is_a?(Hash)
|
208
|
+
self.class.swagger_types.each_pair do |key, type|
|
209
|
+
if type =~ /\AArray<(.*)>/i
|
210
|
+
# check to ensure the input is an array given that the the attribute
|
211
|
+
# is documented as an array but the input is not
|
212
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
213
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
214
|
+
end
|
215
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
216
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
217
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
218
|
+
end
|
219
|
+
|
220
|
+
self
|
221
|
+
end
|
222
|
+
|
223
|
+
# Deserializes the data based on type
|
224
|
+
# @param string type Data type
|
225
|
+
# @param string value Value to be deserialized
|
226
|
+
# @return [Object] Deserialized data
|
227
|
+
def _deserialize(type, value)
|
228
|
+
case type.to_sym
|
229
|
+
when :DateTime
|
230
|
+
DateTime.parse(value)
|
231
|
+
when :Date
|
232
|
+
Date.parse(value)
|
233
|
+
when :String
|
234
|
+
value.to_s
|
235
|
+
when :Integer
|
236
|
+
value.to_i
|
237
|
+
when :Float
|
238
|
+
value.to_f
|
239
|
+
when :BOOLEAN
|
240
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
241
|
+
true
|
242
|
+
else
|
243
|
+
false
|
244
|
+
end
|
245
|
+
when :Object
|
246
|
+
# generic object (usually a Hash), return directly
|
247
|
+
value
|
248
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
249
|
+
inner_type = Regexp.last_match[:inner_type]
|
250
|
+
value.map { |v| _deserialize(inner_type, v) }
|
251
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
252
|
+
k_type = Regexp.last_match[:k_type]
|
253
|
+
v_type = Regexp.last_match[:v_type]
|
254
|
+
{}.tap do |hash|
|
255
|
+
value.each do |k, v|
|
256
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
257
|
+
end
|
258
|
+
end
|
259
|
+
else # model
|
260
|
+
temp_model = CloudmersiveConvertApiClient.const_get(type).new
|
261
|
+
temp_model.build_from_hash(value)
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
# Returns the string representation of the object
|
266
|
+
# @return [String] String presentation of the object
|
267
|
+
def to_s
|
268
|
+
to_hash.to_s
|
269
|
+
end
|
270
|
+
|
271
|
+
# to_body is an alias to to_hash (backward compatibility)
|
272
|
+
# @return [Hash] Returns the object in the form of hash
|
273
|
+
def to_body
|
274
|
+
to_hash
|
275
|
+
end
|
276
|
+
|
277
|
+
# Returns the object in the form of hash
|
278
|
+
# @return [Hash] Returns the object in the form of hash
|
279
|
+
def to_hash
|
280
|
+
hash = {}
|
281
|
+
self.class.attribute_map.each_pair do |attr, param|
|
282
|
+
value = self.send(attr)
|
283
|
+
next if value.nil?
|
284
|
+
hash[param] = _to_hash(value)
|
285
|
+
end
|
286
|
+
hash
|
287
|
+
end
|
288
|
+
|
289
|
+
# Outputs non-array value in the form of hash
|
290
|
+
# For object, use to_hash. Otherwise, just return the value
|
291
|
+
# @param [Object] value Any valid value
|
292
|
+
# @return [Hash] Returns the value in the form of hash
|
293
|
+
def _to_hash(value)
|
294
|
+
if value.is_a?(Array)
|
295
|
+
value.compact.map{ |v| _to_hash(v) }
|
296
|
+
elsif value.is_a?(Hash)
|
297
|
+
{}.tap do |hash|
|
298
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
299
|
+
end
|
300
|
+
elsif value.respond_to? :to_hash
|
301
|
+
value.to_hash
|
302
|
+
else
|
303
|
+
value
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
end
|
308
|
+
|
309
|
+
end
|
@@ -21,17 +21,20 @@ module CloudmersiveConvertApiClient
|
|
21
21
|
# Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public).
|
22
22
|
attr_accessor :input_document_file_url
|
23
23
|
|
24
|
-
# Optional: Bytes of the input image file to operate on
|
24
|
+
# Optional: Bytes of the input image file to operate on; if you supply this value do not supply InputImageFileUrl or ImageToAdd.
|
25
25
|
attr_accessor :input_image_file_bytes
|
26
26
|
|
27
|
-
# Optional: URL of an image file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public).
|
27
|
+
# Optional: URL of an image file to operate on as input; if you supply this value do not supply InputImageFileBytes or ImageToAdd. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public).
|
28
28
|
attr_accessor :input_image_file_url
|
29
29
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
30
|
+
# Optional: Image to add; if you supply in this object, do not supply InputImageFileBytes or InputImageFileUrl.
|
31
|
+
attr_accessor :image_to_add
|
32
32
|
|
33
|
-
#
|
34
|
-
attr_accessor :
|
33
|
+
# Optional; default is DocumentEnd. Placement Type of the insert; possible values are: DocumentStart (very beginning of the document), DocumentEnd (very end of the document), BeforeExistingObject (right before an existing object - fill in the InsertPath field using the Path value from an existing object), AfterExistingObject (right after an existing object - fill in the InsertPath field using the Path value from an existing object)
|
34
|
+
attr_accessor :insert_placement
|
35
|
+
|
36
|
+
# Optional; location within the document to insert the object; fill in the InsertPath field using the Path value from an existing object. Used with InsertPlacement of BeforeExistingObject or AfterExistingObject
|
37
|
+
attr_accessor :insert_path
|
35
38
|
|
36
39
|
|
37
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -41,8 +44,9 @@ module CloudmersiveConvertApiClient
|
|
41
44
|
:'input_document_file_url' => :'InputDocumentFileUrl',
|
42
45
|
:'input_image_file_bytes' => :'InputImageFileBytes',
|
43
46
|
:'input_image_file_url' => :'InputImageFileUrl',
|
44
|
-
:'
|
45
|
-
:'
|
47
|
+
:'image_to_add' => :'ImageToAdd',
|
48
|
+
:'insert_placement' => :'InsertPlacement',
|
49
|
+
:'insert_path' => :'InsertPath'
|
46
50
|
}
|
47
51
|
end
|
48
52
|
|
@@ -53,8 +57,9 @@ module CloudmersiveConvertApiClient
|
|
53
57
|
:'input_document_file_url' => :'String',
|
54
58
|
:'input_image_file_bytes' => :'String',
|
55
59
|
:'input_image_file_url' => :'String',
|
56
|
-
:'
|
57
|
-
:'
|
60
|
+
:'image_to_add' => :'DocxImage',
|
61
|
+
:'insert_placement' => :'String',
|
62
|
+
:'insert_path' => :'String'
|
58
63
|
}
|
59
64
|
end
|
60
65
|
|
@@ -82,12 +87,16 @@ module CloudmersiveConvertApiClient
|
|
82
87
|
self.input_image_file_url = attributes[:'InputImageFileUrl']
|
83
88
|
end
|
84
89
|
|
85
|
-
if attributes.has_key?(:'
|
86
|
-
self.
|
90
|
+
if attributes.has_key?(:'ImageToAdd')
|
91
|
+
self.image_to_add = attributes[:'ImageToAdd']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.has_key?(:'InsertPlacement')
|
95
|
+
self.insert_placement = attributes[:'InsertPlacement']
|
87
96
|
end
|
88
97
|
|
89
|
-
if attributes.has_key?(:'
|
90
|
-
self.
|
98
|
+
if attributes.has_key?(:'InsertPath')
|
99
|
+
self.insert_path = attributes[:'InsertPath']
|
91
100
|
end
|
92
101
|
|
93
102
|
end
|
@@ -146,8 +155,9 @@ module CloudmersiveConvertApiClient
|
|
146
155
|
input_document_file_url == o.input_document_file_url &&
|
147
156
|
input_image_file_bytes == o.input_image_file_bytes &&
|
148
157
|
input_image_file_url == o.input_image_file_url &&
|
149
|
-
|
150
|
-
|
158
|
+
image_to_add == o.image_to_add &&
|
159
|
+
insert_placement == o.insert_placement &&
|
160
|
+
insert_path == o.insert_path
|
151
161
|
end
|
152
162
|
|
153
163
|
# @see the `==` method
|
@@ -159,7 +169,7 @@ module CloudmersiveConvertApiClient
|
|
159
169
|
# Calculates hash code according to all attributes.
|
160
170
|
# @return [Fixnum] Hash code
|
161
171
|
def hash
|
162
|
-
[input_document_file_bytes, input_document_file_url, input_image_file_bytes, input_image_file_url,
|
172
|
+
[input_document_file_bytes, input_document_file_url, input_image_file_bytes, input_image_file_url, image_to_add, insert_placement, insert_path].hash
|
163
173
|
end
|
164
174
|
|
165
175
|
# Builds the object from hash
|