cloudmersive-convert-api-client 2.2.6 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +54 -8
  3. data/docs/CompareDocumentApi.md +6 -2
  4. data/docs/ConvertDataApi.md +60 -5
  5. data/docs/ConvertDocumentApi.md +358 -10
  6. data/docs/ConvertDocumentBatchJobCreateResult.md +9 -0
  7. data/docs/ConvertDocumentJobStatusResult.md +12 -0
  8. data/docs/ConvertImageApi.md +6 -2
  9. data/docs/ConvertWebApi.md +8 -8
  10. data/docs/ConvertedPngDirectPage.md +9 -0
  11. data/docs/DocumentArrayInput.md +8 -0
  12. data/docs/DocumentItem.md +9 -0
  13. data/docs/EditDocumentApi.md +124 -2
  14. data/docs/EditPdfApi.md +244 -2
  15. data/docs/EditPdfBatchJobCreateResult.md +9 -0
  16. data/docs/EditPdfJobStatusResult.md +12 -0
  17. data/docs/JobStatusResult.md +12 -0
  18. data/docs/MergeBatchJobCreateResult.md +9 -0
  19. data/docs/MergeDocumentApi.md +440 -0
  20. data/docs/MergeJobStatusResult.md +12 -0
  21. data/docs/PdfMetadata.md +2 -0
  22. data/docs/PdfToPngDirectResult.md +9 -0
  23. data/docs/PptxPageLayoutInformation.md +11 -0
  24. data/docs/PptxSplitAdvancedRequest.md +9 -0
  25. data/docs/PptxSplitAdvancedResponse.md +9 -0
  26. data/docs/PresentationAdvancedResult.md +9 -0
  27. data/docs/SplitBatchJobCreateResult.md +9 -0
  28. data/docs/SplitDocumentApi.md +169 -0
  29. data/docs/ValidateDocumentApi.md +175 -6
  30. data/lib/cloudmersive-convert-api-client/api/compare_document_api.rb +3 -0
  31. data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +57 -4
  32. data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +354 -11
  33. data/lib/cloudmersive-convert-api-client/api/convert_image_api.rb +3 -0
  34. data/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +8 -8
  35. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +122 -0
  36. data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +263 -0
  37. data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +431 -0
  38. data/lib/cloudmersive-convert-api-client/api/split_document_api.rb +165 -0
  39. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +172 -4
  40. data/lib/cloudmersive-convert-api-client/models/convert_document_batch_job_create_result.rb +196 -0
  41. data/lib/cloudmersive-convert-api-client/models/convert_document_job_status_result.rb +241 -0
  42. data/lib/cloudmersive-convert-api-client/models/converted_png_direct_page.rb +211 -0
  43. data/lib/cloudmersive-convert-api-client/models/document_array_input.rb +188 -0
  44. data/lib/cloudmersive-convert-api-client/models/document_item.rb +211 -0
  45. data/lib/cloudmersive-convert-api-client/models/edit_pdf_batch_job_create_result.rb +196 -0
  46. data/lib/cloudmersive-convert-api-client/models/edit_pdf_job_status_result.rb +241 -0
  47. data/lib/cloudmersive-convert-api-client/models/job_status_result.rb +226 -0
  48. data/lib/cloudmersive-convert-api-client/models/merge_batch_job_create_result.rb +196 -0
  49. data/lib/cloudmersive-convert-api-client/models/merge_job_status_result.rb +241 -0
  50. data/lib/cloudmersive-convert-api-client/models/pdf_metadata.rb +24 -4
  51. data/lib/cloudmersive-convert-api-client/models/pdf_to_png_direct_result.rb +198 -0
  52. data/lib/cloudmersive-convert-api-client/models/pptx_page_layout_information.rb +216 -0
  53. data/lib/cloudmersive-convert-api-client/models/pptx_split_advanced_request.rb +211 -0
  54. data/lib/cloudmersive-convert-api-client/models/pptx_split_advanced_response.rb +197 -0
  55. data/lib/cloudmersive-convert-api-client/models/presentation_advanced_result.rb +211 -0
  56. data/lib/cloudmersive-convert-api-client/models/presentation_result.rb +1 -1
  57. data/lib/cloudmersive-convert-api-client/models/split_batch_job_create_result.rb +196 -0
  58. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  59. data/lib/cloudmersive-convert-api-client.rb +16 -0
  60. data/spec/api/compare_document_api_spec.rb +1 -0
  61. data/spec/api/convert_data_api_spec.rb +14 -2
  62. data/spec/api/convert_document_api_spec.rb +80 -3
  63. data/spec/api/convert_image_api_spec.rb +1 -0
  64. data/spec/api/edit_document_api_spec.rb +28 -0
  65. data/spec/api/edit_pdf_api_spec.rb +55 -0
  66. data/spec/api/merge_document_api_spec.rb +96 -0
  67. data/spec/api/split_document_api_spec.rb +37 -0
  68. data/spec/api/validate_document_api_spec.rb +39 -2
  69. data/spec/models/convert_document_batch_job_create_result_spec.rb +47 -0
  70. data/spec/models/convert_document_job_status_result_spec.rb +65 -0
  71. data/spec/models/converted_png_direct_page_spec.rb +47 -0
  72. data/spec/models/document_array_input_spec.rb +41 -0
  73. data/spec/models/document_item_spec.rb +47 -0
  74. data/spec/models/edit_pdf_batch_job_create_result_spec.rb +47 -0
  75. data/spec/models/edit_pdf_job_status_result_spec.rb +65 -0
  76. data/spec/models/job_status_result_spec.rb +65 -0
  77. data/spec/models/merge_batch_job_create_result_spec.rb +47 -0
  78. data/spec/models/merge_job_status_result_spec.rb +65 -0
  79. data/spec/models/pdf_metadata_spec.rb +12 -0
  80. data/spec/models/pdf_to_png_direct_result_spec.rb +47 -0
  81. data/spec/models/pptx_page_layout_information_spec.rb +59 -0
  82. data/spec/models/pptx_split_advanced_request_spec.rb +47 -0
  83. data/spec/models/pptx_split_advanced_response_spec.rb +47 -0
  84. data/spec/models/presentation_advanced_result_spec.rb +47 -0
  85. data/spec/models/split_batch_job_create_result_spec.rb +47 -0
  86. metadata +50 -2
@@ -133,7 +133,7 @@ module CloudmersiveConvertApiClient
133
133
  return data, status_code, headers
134
134
  end
135
135
  # Convert Document to PDF
136
- # Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files.
136
+ # Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, text files, and even multi-page TIFF files.
137
137
  # @param input_file Input file to perform the operation on.
138
138
  # @param [Hash] opts the optional parameters
139
139
  # @return [String]
@@ -143,7 +143,7 @@ module CloudmersiveConvertApiClient
143
143
  end
144
144
 
145
145
  # Convert Document to PDF
146
- # Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files.
146
+ # Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, text files, and even multi-page TIFF files.
147
147
  # @param input_file Input file to perform the operation on.
148
148
  # @param [Hash] opts the optional parameters
149
149
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
@@ -187,6 +187,61 @@ module CloudmersiveConvertApiClient
187
187
  end
188
188
  return data, status_code, headers
189
189
  end
190
+ # Convert Document to PDF as Batch Job
191
+ # Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, text files, and even multi-page TIFF files. This API is designed for large jobs that could take a long time to create and so runs as a batch job that returns a Job ID that you can use with the GetAsyncJobStatus API to check on the status of the Job and ultimately get the output result. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments.
192
+ # @param input_file Input file to perform the operation on.
193
+ # @param [Hash] opts the optional parameters
194
+ # @return [ConvertDocumentBatchJobCreateResult]
195
+ def convert_document_autodetect_to_pdf_batch_job(input_file, opts = {})
196
+ data, _status_code, _headers = convert_document_autodetect_to_pdf_batch_job_with_http_info(input_file, opts)
197
+ data
198
+ end
199
+
200
+ # Convert Document to PDF as Batch Job
201
+ # Automatically detect file type and convert it to PDF. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, text files, and even multi-page TIFF files. This API is designed for large jobs that could take a long time to create and so runs as a batch job that returns a Job ID that you can use with the GetAsyncJobStatus API to check on the status of the Job and ultimately get the output result. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments.
202
+ # @param input_file Input file to perform the operation on.
203
+ # @param [Hash] opts the optional parameters
204
+ # @return [Array<(ConvertDocumentBatchJobCreateResult, Fixnum, Hash)>] ConvertDocumentBatchJobCreateResult data, response status code and response headers
205
+ def convert_document_autodetect_to_pdf_batch_job_with_http_info(input_file, opts = {})
206
+ if @api_client.config.debugging
207
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_autodetect_to_pdf_batch_job ...'
208
+ end
209
+ # verify the required parameter 'input_file' is set
210
+ if @api_client.config.client_side_validation && input_file.nil?
211
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_autodetect_to_pdf_batch_job"
212
+ end
213
+ # resource path
214
+ local_var_path = '/convert/autodetect/to/pdf/batch-job'
215
+
216
+ # query parameters
217
+ query_params = {}
218
+
219
+ # header parameters
220
+ header_params = {}
221
+ # HTTP header 'Accept' (if needed)
222
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
223
+ # HTTP header 'Content-Type'
224
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
225
+
226
+ # form parameters
227
+ form_params = {}
228
+ form_params['inputFile'] = input_file
229
+
230
+ # http body (model)
231
+ post_body = nil
232
+ auth_names = ['Apikey']
233
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
234
+ :header_params => header_params,
235
+ :query_params => query_params,
236
+ :form_params => form_params,
237
+ :body => post_body,
238
+ :auth_names => auth_names,
239
+ :return_type => 'ConvertDocumentBatchJobCreateResult')
240
+ if @api_client.config.debugging
241
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_autodetect_to_pdf_batch_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
242
+ end
243
+ return data, status_code, headers
244
+ end
190
245
  # Convert Document to PNG array
191
246
  # Automatically detect file type and convert it to an array of PNG images. Supports all of the major Office document file formats, over 100 image formats, and even multi-page TIFF files.
192
247
  # @param input_file Input file to perform the operation on.
@@ -1473,6 +1528,59 @@ module CloudmersiveConvertApiClient
1473
1528
  end
1474
1529
  return data, status_code, headers
1475
1530
  end
1531
+ # Get the status and result of a Convert Document Batch Job
1532
+ # Returns the result of the Async Job - possible states can be STARTED or COMPLETED. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments.
1533
+ # @param async_job_id
1534
+ # @param [Hash] opts the optional parameters
1535
+ # @return [ConvertDocumentJobStatusResult]
1536
+ def convert_document_get_async_job_status(async_job_id, opts = {})
1537
+ data, _status_code, _headers = convert_document_get_async_job_status_with_http_info(async_job_id, opts)
1538
+ data
1539
+ end
1540
+
1541
+ # Get the status and result of a Convert Document Batch Job
1542
+ # Returns the result of the Async Job - possible states can be STARTED or COMPLETED. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments.
1543
+ # @param async_job_id
1544
+ # @param [Hash] opts the optional parameters
1545
+ # @return [Array<(ConvertDocumentJobStatusResult, Fixnum, Hash)>] ConvertDocumentJobStatusResult data, response status code and response headers
1546
+ def convert_document_get_async_job_status_with_http_info(async_job_id, opts = {})
1547
+ if @api_client.config.debugging
1548
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_get_async_job_status ...'
1549
+ end
1550
+ # verify the required parameter 'async_job_id' is set
1551
+ if @api_client.config.client_side_validation && async_job_id.nil?
1552
+ fail ArgumentError, "Missing the required parameter 'async_job_id' when calling ConvertDocumentApi.convert_document_get_async_job_status"
1553
+ end
1554
+ # resource path
1555
+ local_var_path = '/convert/batch-job/status'
1556
+
1557
+ # query parameters
1558
+ query_params = {}
1559
+ query_params[:'AsyncJobID'] = async_job_id
1560
+
1561
+ # header parameters
1562
+ header_params = {}
1563
+ # HTTP header 'Accept' (if needed)
1564
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
1565
+
1566
+ # form parameters
1567
+ form_params = {}
1568
+
1569
+ # http body (model)
1570
+ post_body = nil
1571
+ auth_names = ['Apikey']
1572
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1573
+ :header_params => header_params,
1574
+ :query_params => query_params,
1575
+ :form_params => form_params,
1576
+ :body => post_body,
1577
+ :auth_names => auth_names,
1578
+ :return_type => 'ConvertDocumentJobStatusResult')
1579
+ if @api_client.config.debugging
1580
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_get_async_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1581
+ end
1582
+ return data, status_code, headers
1583
+ end
1476
1584
  # Get PNG icon file for the file extension
1477
1585
  # Returns a PNG icon for the given file format extension as a file for download. User may specify the icon size. Supports over 100 file formats, with a generic icon for unsupported formats.
1478
1586
  # @param file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters.
@@ -3049,9 +3157,10 @@ module CloudmersiveConvertApiClient
3049
3157
  return data, status_code, headers
3050
3158
  end
3051
3159
  # Convert PDF to PNG Image Array
3052
- # Convert PDF document to PNG array, one image per page.
3160
+ # Convert PDF document to PNG array, one image per page. Returns PNG images as temporary expiring URLs.
3053
3161
  # @param input_file Input file to perform the operation on.
3054
3162
  # @param [Hash] opts the optional parameters
3163
+ # @option opts [Integer] :dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud.
3055
3164
  # @return [PdfToPngResult]
3056
3165
  def convert_document_pdf_to_png_array(input_file, opts = {})
3057
3166
  data, _status_code, _headers = convert_document_pdf_to_png_array_with_http_info(input_file, opts)
@@ -3059,9 +3168,10 @@ module CloudmersiveConvertApiClient
3059
3168
  end
3060
3169
 
3061
3170
  # Convert PDF to PNG Image Array
3062
- # Convert PDF document to PNG array, one image per page.
3171
+ # Convert PDF document to PNG array, one image per page. Returns PNG images as temporary expiring URLs.
3063
3172
  # @param input_file Input file to perform the operation on.
3064
3173
  # @param [Hash] opts the optional parameters
3174
+ # @option opts [Integer] :dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud.
3065
3175
  # @return [Array<(PdfToPngResult, Fixnum, Hash)>] PdfToPngResult data, response status code and response headers
3066
3176
  def convert_document_pdf_to_png_array_with_http_info(input_file, opts = {})
3067
3177
  if @api_client.config.debugging
@@ -3083,6 +3193,7 @@ module CloudmersiveConvertApiClient
3083
3193
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3084
3194
  # HTTP header 'Content-Type'
3085
3195
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3196
+ header_params[:'dpi'] = opts[:'dpi'] if !opts[:'dpi'].nil?
3086
3197
 
3087
3198
  # form parameters
3088
3199
  form_params = {}
@@ -3103,6 +3214,64 @@ module CloudmersiveConvertApiClient
3103
3214
  end
3104
3215
  return data, status_code, headers
3105
3216
  end
3217
+ # Convert PDF to PNG Image Array (Direct)
3218
+ # Convert PDF document to PNG array, one image per page. Returns PNG images directly in the response objects.
3219
+ # @param input_file Input file to perform the operation on.
3220
+ # @param [Hash] opts the optional parameters
3221
+ # @option opts [Integer] :dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud.
3222
+ # @return [PdfToPngDirectResult]
3223
+ def convert_document_pdf_to_png_array_direct(input_file, opts = {})
3224
+ data, _status_code, _headers = convert_document_pdf_to_png_array_direct_with_http_info(input_file, opts)
3225
+ data
3226
+ end
3227
+
3228
+ # Convert PDF to PNG Image Array (Direct)
3229
+ # Convert PDF document to PNG array, one image per page. Returns PNG images directly in the response objects.
3230
+ # @param input_file Input file to perform the operation on.
3231
+ # @param [Hash] opts the optional parameters
3232
+ # @option opts [Integer] :dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud.
3233
+ # @return [Array<(PdfToPngDirectResult, Fixnum, Hash)>] PdfToPngDirectResult data, response status code and response headers
3234
+ def convert_document_pdf_to_png_array_direct_with_http_info(input_file, opts = {})
3235
+ if @api_client.config.debugging
3236
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_png_array_direct ...'
3237
+ end
3238
+ # verify the required parameter 'input_file' is set
3239
+ if @api_client.config.client_side_validation && input_file.nil?
3240
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_png_array_direct"
3241
+ end
3242
+ # resource path
3243
+ local_var_path = '/convert/pdf/to/png/direct'
3244
+
3245
+ # query parameters
3246
+ query_params = {}
3247
+
3248
+ # header parameters
3249
+ header_params = {}
3250
+ # HTTP header 'Accept' (if needed)
3251
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3252
+ # HTTP header 'Content-Type'
3253
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3254
+ header_params[:'dpi'] = opts[:'dpi'] if !opts[:'dpi'].nil?
3255
+
3256
+ # form parameters
3257
+ form_params = {}
3258
+ form_params['inputFile'] = input_file
3259
+
3260
+ # http body (model)
3261
+ post_body = nil
3262
+ auth_names = ['Apikey']
3263
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3264
+ :header_params => header_params,
3265
+ :query_params => query_params,
3266
+ :form_params => form_params,
3267
+ :body => post_body,
3268
+ :auth_names => auth_names,
3269
+ :return_type => 'PdfToPngDirectResult')
3270
+ if @api_client.config.debugging
3271
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_png_array_direct\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3272
+ end
3273
+ return data, status_code, headers
3274
+ end
3106
3275
  # Convert PDF to Single PNG image
3107
3276
  # Convert PDF document to a single tall PNG image, by stacking/concatenating the images vertically into a single \"tall\" image
3108
3277
  # @param input_file Input file to perform the operation on.
@@ -3213,6 +3382,67 @@ module CloudmersiveConvertApiClient
3213
3382
  end
3214
3383
  return data, status_code, headers
3215
3384
  end
3385
+ # Convert PDF to TIFF image
3386
+ # Converts a PDF Document to a TIFF image. If the PDF contains multiple pages, these pages will be represented as separate pages within the output TIFF image.
3387
+ # @param input_file Input file to perform the operation on.
3388
+ # @param [Hash] opts the optional parameters
3389
+ # @option opts [Integer] :dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud.
3390
+ # @option opts [BOOLEAN] :lzw_compression Optional; Enables LZW compression to reduce the size of the output image.
3391
+ # @return [String]
3392
+ def convert_document_pdf_to_tiff(input_file, opts = {})
3393
+ data, _status_code, _headers = convert_document_pdf_to_tiff_with_http_info(input_file, opts)
3394
+ data
3395
+ end
3396
+
3397
+ # Convert PDF to TIFF image
3398
+ # Converts a PDF Document to a TIFF image. If the PDF contains multiple pages, these pages will be represented as separate pages within the output TIFF image.
3399
+ # @param input_file Input file to perform the operation on.
3400
+ # @param [Hash] opts the optional parameters
3401
+ # @option opts [Integer] :dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud.
3402
+ # @option opts [BOOLEAN] :lzw_compression Optional; Enables LZW compression to reduce the size of the output image.
3403
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3404
+ def convert_document_pdf_to_tiff_with_http_info(input_file, opts = {})
3405
+ if @api_client.config.debugging
3406
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pdf_to_tiff ...'
3407
+ end
3408
+ # verify the required parameter 'input_file' is set
3409
+ if @api_client.config.client_side_validation && input_file.nil?
3410
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pdf_to_tiff"
3411
+ end
3412
+ # resource path
3413
+ local_var_path = '/convert/pdf/to/tiff'
3414
+
3415
+ # query parameters
3416
+ query_params = {}
3417
+
3418
+ # header parameters
3419
+ header_params = {}
3420
+ # HTTP header 'Accept' (if needed)
3421
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3422
+ # HTTP header 'Content-Type'
3423
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3424
+ header_params[:'dpi'] = opts[:'dpi'] if !opts[:'dpi'].nil?
3425
+ header_params[:'lzwCompression'] = opts[:'lzw_compression'] if !opts[:'lzw_compression'].nil?
3426
+
3427
+ # form parameters
3428
+ form_params = {}
3429
+ form_params['inputFile'] = input_file
3430
+
3431
+ # http body (model)
3432
+ post_body = nil
3433
+ auth_names = ['Apikey']
3434
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3435
+ :header_params => header_params,
3436
+ :query_params => query_params,
3437
+ :form_params => form_params,
3438
+ :body => post_body,
3439
+ :auth_names => auth_names,
3440
+ :return_type => 'String')
3441
+ if @api_client.config.debugging
3442
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pdf_to_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3443
+ end
3444
+ return data, status_code, headers
3445
+ end
3216
3446
  # Convert PDF Document to Text (txt)
3217
3447
  # PDF document to text
3218
3448
  # @param input_file Input file to perform the operation on.
@@ -3357,6 +3587,52 @@ module CloudmersiveConvertApiClient
3357
3587
  end
3358
3588
  return data, status_code, headers
3359
3589
  end
3590
+ # Convert PNG Array to PDF and remove transparency
3591
+ # Convert an array of PNG images, remove transparency in source images, one image per page, into a newly-created PDF. Supports images of different sizes as input.
3592
+ # @param [Hash] opts the optional parameters
3593
+ # @return [Object]
3594
+ def convert_document_png_array_to_pdf_flatten_transparency(opts = {})
3595
+ data, _status_code, _headers = convert_document_png_array_to_pdf_flatten_transparency_with_http_info(opts)
3596
+ data
3597
+ end
3598
+
3599
+ # Convert PNG Array to PDF and remove transparency
3600
+ # Convert an array of PNG images, remove transparency in source images, one image per page, into a newly-created PDF. Supports images of different sizes as input.
3601
+ # @param [Hash] opts the optional parameters
3602
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
3603
+ def convert_document_png_array_to_pdf_flatten_transparency_with_http_info(opts = {})
3604
+ if @api_client.config.debugging
3605
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_png_array_to_pdf_flatten_transparency ...'
3606
+ end
3607
+ # resource path
3608
+ local_var_path = '/convert/png/to/pdf/remove-transparency'
3609
+
3610
+ # query parameters
3611
+ query_params = {}
3612
+
3613
+ # header parameters
3614
+ header_params = {}
3615
+ # HTTP header 'Accept' (if needed)
3616
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3617
+
3618
+ # form parameters
3619
+ form_params = {}
3620
+
3621
+ # http body (model)
3622
+ post_body = nil
3623
+ auth_names = ['Apikey']
3624
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3625
+ :header_params => header_params,
3626
+ :query_params => query_params,
3627
+ :form_params => form_params,
3628
+ :body => post_body,
3629
+ :auth_names => auth_names,
3630
+ :return_type => 'Object')
3631
+ if @api_client.config.debugging
3632
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_png_array_to_pdf_flatten_transparency\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3633
+ end
3634
+ return data, status_code, headers
3635
+ end
3360
3636
  # Convert PowerPoint PPT (97-03) Presentation to PDF
3361
3637
  # Convert Office PowerPoint (97-2003) Documents (ppt) to standard PDF
3362
3638
  # @param input_file Input file to perform the operation on.
@@ -3579,21 +3855,27 @@ module CloudmersiveConvertApiClient
3579
3855
  end
3580
3856
  # Convert PowerPoint PPTX presentation to Legacy PowerPoint PPT (97-03)
3581
3857
  # Convert/downgrade modern Office PowerPoint PPTX Presentation to the legacy PowerPoint PPT (97-2003 Format) format
3858
+ # @param input_file Input file to perform the operation on.
3582
3859
  # @param [Hash] opts the optional parameters
3583
- # @return [Object]
3584
- def convert_document_pptx_to_ppt(opts = {})
3585
- data, _status_code, _headers = convert_document_pptx_to_ppt_with_http_info(opts)
3860
+ # @return [String]
3861
+ def convert_document_pptx_to_ppt(input_file, opts = {})
3862
+ data, _status_code, _headers = convert_document_pptx_to_ppt_with_http_info(input_file, opts)
3586
3863
  data
3587
3864
  end
3588
3865
 
3589
3866
  # Convert PowerPoint PPTX presentation to Legacy PowerPoint PPT (97-03)
3590
3867
  # Convert/downgrade modern Office PowerPoint PPTX Presentation to the legacy PowerPoint PPT (97-2003 Format) format
3868
+ # @param input_file Input file to perform the operation on.
3591
3869
  # @param [Hash] opts the optional parameters
3592
- # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
3593
- def convert_document_pptx_to_ppt_with_http_info(opts = {})
3870
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
3871
+ def convert_document_pptx_to_ppt_with_http_info(input_file, opts = {})
3594
3872
  if @api_client.config.debugging
3595
3873
  @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_pptx_to_ppt ...'
3596
3874
  end
3875
+ # verify the required parameter 'input_file' is set
3876
+ if @api_client.config.client_side_validation && input_file.nil?
3877
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_pptx_to_ppt"
3878
+ end
3597
3879
  # resource path
3598
3880
  local_var_path = '/convert/pptx/to/ppt'
3599
3881
 
@@ -3604,9 +3886,12 @@ module CloudmersiveConvertApiClient
3604
3886
  header_params = {}
3605
3887
  # HTTP header 'Accept' (if needed)
3606
3888
  header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
3889
+ # HTTP header 'Content-Type'
3890
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3607
3891
 
3608
3892
  # form parameters
3609
3893
  form_params = {}
3894
+ form_params['inputFile'] = input_file
3610
3895
 
3611
3896
  # http body (model)
3612
3897
  post_body = nil
@@ -3617,7 +3902,7 @@ module CloudmersiveConvertApiClient
3617
3902
  :form_params => form_params,
3618
3903
  :body => post_body,
3619
3904
  :auth_names => auth_names,
3620
- :return_type => 'Object')
3905
+ :return_type => 'String')
3621
3906
  if @api_client.config.debugging
3622
3907
  @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_pptx_to_ppt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3623
3908
  end
@@ -3956,6 +4241,64 @@ module CloudmersiveConvertApiClient
3956
4241
  end
3957
4242
  return data, status_code, headers
3958
4243
  end
4244
+ # Convert TXT text file to PDF Document
4245
+ # Convert simple text files to PDF.
4246
+ # @param input_file Input file to perform the operation on.
4247
+ # @param [Hash] opts the optional parameters
4248
+ # @option opts [Integer] :scale_factor Optional: Set to 100 to scale at 100%, set to 50% to scale down to 50% scale, set to 200% to scale up to 200% scale, etc. Default is 100%. Maximum is 1000%.
4249
+ # @return [String]
4250
+ def convert_document_txt_to_pdf(input_file, opts = {})
4251
+ data, _status_code, _headers = convert_document_txt_to_pdf_with_http_info(input_file, opts)
4252
+ data
4253
+ end
4254
+
4255
+ # Convert TXT text file to PDF Document
4256
+ # Convert simple text files to PDF.
4257
+ # @param input_file Input file to perform the operation on.
4258
+ # @param [Hash] opts the optional parameters
4259
+ # @option opts [Integer] :scale_factor Optional: Set to 100 to scale at 100%, set to 50% to scale down to 50% scale, set to 200% to scale up to 200% scale, etc. Default is 100%. Maximum is 1000%.
4260
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
4261
+ def convert_document_txt_to_pdf_with_http_info(input_file, opts = {})
4262
+ if @api_client.config.debugging
4263
+ @api_client.config.logger.debug 'Calling API: ConvertDocumentApi.convert_document_txt_to_pdf ...'
4264
+ end
4265
+ # verify the required parameter 'input_file' is set
4266
+ if @api_client.config.client_side_validation && input_file.nil?
4267
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDocumentApi.convert_document_txt_to_pdf"
4268
+ end
4269
+ # resource path
4270
+ local_var_path = '/convert/txt/to/pdf'
4271
+
4272
+ # query parameters
4273
+ query_params = {}
4274
+
4275
+ # header parameters
4276
+ header_params = {}
4277
+ # HTTP header 'Accept' (if needed)
4278
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4279
+ # HTTP header 'Content-Type'
4280
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4281
+ header_params[:'scaleFactor'] = opts[:'scale_factor'] if !opts[:'scale_factor'].nil?
4282
+
4283
+ # form parameters
4284
+ form_params = {}
4285
+ form_params['inputFile'] = input_file
4286
+
4287
+ # http body (model)
4288
+ post_body = nil
4289
+ auth_names = ['Apikey']
4290
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4291
+ :header_params => header_params,
4292
+ :query_params => query_params,
4293
+ :form_params => form_params,
4294
+ :body => post_body,
4295
+ :auth_names => auth_names,
4296
+ :return_type => 'String')
4297
+ if @api_client.config.debugging
4298
+ @api_client.config.logger.debug "API called: ConvertDocumentApi#convert_document_txt_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4299
+ end
4300
+ return data, status_code, headers
4301
+ end
3959
4302
  # Convert Excel XLS (97-03) Spreadsheet to CSV
3960
4303
  # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to standard CSV format.
3961
4304
  # @param input_file Input file to perform the operation on.
@@ -4155,7 +4498,7 @@ module CloudmersiveConvertApiClient
4155
4498
  # header parameters
4156
4499
  header_params = {}
4157
4500
  # HTTP header 'Accept' (if needed)
4158
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
4501
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
4159
4502
  # HTTP header 'Content-Type'
4160
4503
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4161
4504
  header_params[:'outputEncoding'] = opts[:'output_encoding'] if !opts[:'output_encoding'].nil?
@@ -208,6 +208,7 @@ module CloudmersiveConvertApiClient
208
208
  # @param format2 Output (convert to this format) file format as a 3+ letter file extension. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV
209
209
  # @param input_file Input file to perform the operation on.
210
210
  # @param [Hash] opts the optional parameters
211
+ # @option opts [Integer] :dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud.
211
212
  # @return [MultipageImageFormatConversionResult]
212
213
  def convert_image_multipage_image_format_convert(format1, format2, input_file, opts = {})
213
214
  data, _status_code, _headers = convert_image_multipage_image_format_convert_with_http_info(format1, format2, input_file, opts)
@@ -220,6 +221,7 @@ module CloudmersiveConvertApiClient
220
221
  # @param format2 Output (convert to this format) file format as a 3+ letter file extension. Supported formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV
221
222
  # @param input_file Input file to perform the operation on.
222
223
  # @param [Hash] opts the optional parameters
224
+ # @option opts [Integer] :dpi Optional; configures the pixel density in Dots per Inch (DPI) (default is 300). This parameter can only be used with Cloudmersive Managed Instance and Private Cloud.
223
225
  # @return [Array<(MultipageImageFormatConversionResult, Fixnum, Hash)>] MultipageImageFormatConversionResult data, response status code and response headers
224
226
  def convert_image_multipage_image_format_convert_with_http_info(format1, format2, input_file, opts = {})
225
227
  if @api_client.config.debugging
@@ -249,6 +251,7 @@ module CloudmersiveConvertApiClient
249
251
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
250
252
  # HTTP header 'Content-Type'
251
253
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
254
+ header_params[:'dpi'] = opts[:'dpi'] if !opts[:'dpi'].nil?
252
255
 
253
256
  # form parameters
254
257
  form_params = {}
@@ -51,7 +51,7 @@ module CloudmersiveConvertApiClient
51
51
  # header parameters
52
52
  header_params = {}
53
53
  # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
55
55
  # HTTP header 'Content-Type'
56
56
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
57
57
 
@@ -105,7 +105,7 @@ module CloudmersiveConvertApiClient
105
105
  # header parameters
106
106
  header_params = {}
107
107
  # HTTP header 'Accept' (if needed)
108
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
108
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
109
109
  # HTTP header 'Content-Type'
110
110
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
111
111
 
@@ -159,7 +159,7 @@ module CloudmersiveConvertApiClient
159
159
  # header parameters
160
160
  header_params = {}
161
161
  # HTTP header 'Accept' (if needed)
162
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
162
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
163
163
  # HTTP header 'Content-Type'
164
164
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
165
165
 
@@ -213,7 +213,7 @@ module CloudmersiveConvertApiClient
213
213
  # header parameters
214
214
  header_params = {}
215
215
  # HTTP header 'Accept' (if needed)
216
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
216
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
217
217
  # HTTP header 'Content-Type'
218
218
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
219
219
 
@@ -267,7 +267,7 @@ module CloudmersiveConvertApiClient
267
267
  # header parameters
268
268
  header_params = {}
269
269
  # HTTP header 'Accept' (if needed)
270
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
270
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
271
271
  # HTTP header 'Content-Type'
272
272
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
273
273
 
@@ -322,7 +322,7 @@ module CloudmersiveConvertApiClient
322
322
  # header parameters
323
323
  header_params = {}
324
324
  # HTTP header 'Accept' (if needed)
325
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
325
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
326
326
  # HTTP header 'Content-Type'
327
327
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
328
328
 
@@ -376,7 +376,7 @@ module CloudmersiveConvertApiClient
376
376
  # header parameters
377
377
  header_params = {}
378
378
  # HTTP header 'Accept' (if needed)
379
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
379
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
380
380
  # HTTP header 'Content-Type'
381
381
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
382
382
 
@@ -430,7 +430,7 @@ module CloudmersiveConvertApiClient
430
430
  # header parameters
431
431
  header_params = {}
432
432
  # HTTP header 'Accept' (if needed)
433
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
433
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
434
434
  # HTTP header 'Content-Type'
435
435
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
436
436