cloudmersive-convert-api-client 2.0.7 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -4
  3. data/docs/ConvertDataApi.md +117 -3
  4. data/docs/ConvertDocumentApi.md +159 -0
  5. data/docs/DocxMetadataCustomProperty.md +13 -0
  6. data/docs/DocxSetCustomMetadataPropertiesRequest.md +10 -0
  7. data/docs/EditDocumentApi.md +330 -0
  8. data/docs/EditHtmlApi.md +81 -13
  9. data/docs/EditPdfApi.md +227 -0
  10. data/docs/GetDocxMetadataPropertiesResponse.md +16 -0
  11. data/docs/ValidateDocumentApi.md +165 -0
  12. data/docs/ViewerToolsApi.md +8 -2
  13. data/docs/ZipArchiveApi.md +80 -0
  14. data/lib/cloudmersive-convert-api-client.rb +3 -0
  15. data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +117 -4
  16. data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +156 -0
  17. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +329 -0
  18. data/lib/cloudmersive-convert-api-client/api/edit_html_api.rb +81 -12
  19. data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +230 -0
  20. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +165 -0
  21. data/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +6 -0
  22. data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +92 -0
  23. data/lib/cloudmersive-convert-api-client/models/docx_metadata_custom_property.rb +236 -0
  24. data/lib/cloudmersive-convert-api-client/models/docx_set_custom_metadata_properties_request.rb +223 -0
  25. data/lib/cloudmersive-convert-api-client/models/get_docx_metadata_properties_response.rb +268 -0
  26. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  27. data/spec/api/convert_data_api_spec.rb +26 -1
  28. data/spec/api/convert_document_api_spec.rb +35 -0
  29. data/spec/api/edit_document_api_spec.rb +72 -0
  30. data/spec/api/edit_html_api_spec.rb +24 -6
  31. data/spec/api/edit_pdf_api_spec.rb +50 -0
  32. data/spec/api/validate_document_api_spec.rb +36 -0
  33. data/spec/api/viewer_tools_api_spec.rb +2 -0
  34. data/spec/api/zip_archive_api_spec.rb +23 -0
  35. data/spec/models/docx_metadata_custom_property_spec.rb +71 -0
  36. data/spec/models/docx_set_custom_metadata_properties_request_spec.rb +53 -0
  37. data/spec/models/get_docx_metadata_properties_response_spec.rb +89 -0
  38. metadata +11 -2
@@ -73,6 +73,64 @@ module CloudmersiveConvertApiClient
73
73
  end
74
74
  return data, status_code, headers
75
75
  end
76
+ # Convert a PDF file to PDF/A
77
+ # Converts the input PDF file to a PDF/A-1b or PDF/A-2b standardized PDF.
78
+ # @param input_file Input file to perform the operation on.
79
+ # @param [Hash] opts the optional parameters
80
+ # @option opts [String] :conformance_level Optional: Select the conformance level for PDF/A - specify '1b' for PDF/A-1b or specify '2b' for PDF/A-2b; default is PDF/A-1b
81
+ # @return [String]
82
+ def edit_pdf_convert_to_pdf_a(input_file, opts = {})
83
+ data, _status_code, _headers = edit_pdf_convert_to_pdf_a_with_http_info(input_file, opts)
84
+ data
85
+ end
86
+
87
+ # Convert a PDF file to PDF/A
88
+ # Converts the input PDF file to a PDF/A-1b or PDF/A-2b standardized PDF.
89
+ # @param input_file Input file to perform the operation on.
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [String] :conformance_level Optional: Select the conformance level for PDF/A - specify '1b' for PDF/A-1b or specify '2b' for PDF/A-2b; default is PDF/A-1b
92
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
93
+ def edit_pdf_convert_to_pdf_a_with_http_info(input_file, opts = {})
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_convert_to_pdf_a ...'
96
+ end
97
+ # verify the required parameter 'input_file' is set
98
+ if @api_client.config.client_side_validation && input_file.nil?
99
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_convert_to_pdf_a"
100
+ end
101
+ # resource path
102
+ local_var_path = '/convert/edit/pdf/optimize/pdf-a'
103
+
104
+ # query parameters
105
+ query_params = {}
106
+
107
+ # header parameters
108
+ header_params = {}
109
+ # HTTP header 'Accept' (if needed)
110
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
111
+ # HTTP header 'Content-Type'
112
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
113
+ header_params[:'conformanceLevel'] = opts[:'conformance_level'] if !opts[:'conformance_level'].nil?
114
+
115
+ # form parameters
116
+ form_params = {}
117
+ form_params['inputFile'] = input_file
118
+
119
+ # http body (model)
120
+ post_body = nil
121
+ auth_names = ['Apikey']
122
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
123
+ :header_params => header_params,
124
+ :query_params => query_params,
125
+ :form_params => form_params,
126
+ :body => post_body,
127
+ :auth_names => auth_names,
128
+ :return_type => 'String')
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_convert_to_pdf_a\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
131
+ end
132
+ return data, status_code, headers
133
+ end
76
134
  # Decrypt and password-protect a PDF
77
135
  # Decrypt a PDF document with a password. Decrypted PDF will no longer require a password to open.
78
136
  # @param password Valid password for the PDF file
@@ -574,6 +632,61 @@ module CloudmersiveConvertApiClient
574
632
  end
575
633
  return data, status_code, headers
576
634
  end
635
+ # Linearize and optimize a PDF for streaming download
636
+ # Linearizes the content of a PDF to optimize it for streaming download, particularly over web streaming.
637
+ # @param input_file Input file to perform the operation on.
638
+ # @param [Hash] opts the optional parameters
639
+ # @return [String]
640
+ def edit_pdf_linearize(input_file, opts = {})
641
+ data, _status_code, _headers = edit_pdf_linearize_with_http_info(input_file, opts)
642
+ data
643
+ end
644
+
645
+ # Linearize and optimize a PDF for streaming download
646
+ # Linearizes the content of a PDF to optimize it for streaming download, particularly over web streaming.
647
+ # @param input_file Input file to perform the operation on.
648
+ # @param [Hash] opts the optional parameters
649
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
650
+ def edit_pdf_linearize_with_http_info(input_file, opts = {})
651
+ if @api_client.config.debugging
652
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_linearize ...'
653
+ end
654
+ # verify the required parameter 'input_file' is set
655
+ if @api_client.config.client_side_validation && input_file.nil?
656
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_linearize"
657
+ end
658
+ # resource path
659
+ local_var_path = '/convert/edit/pdf/optimize/linearize'
660
+
661
+ # query parameters
662
+ query_params = {}
663
+
664
+ # header parameters
665
+ header_params = {}
666
+ # HTTP header 'Accept' (if needed)
667
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
668
+ # HTTP header 'Content-Type'
669
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
670
+
671
+ # form parameters
672
+ form_params = {}
673
+ form_params['inputFile'] = input_file
674
+
675
+ # http body (model)
676
+ post_body = nil
677
+ auth_names = ['Apikey']
678
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
679
+ :header_params => header_params,
680
+ :query_params => query_params,
681
+ :form_params => form_params,
682
+ :body => post_body,
683
+ :auth_names => auth_names,
684
+ :return_type => 'String')
685
+ if @api_client.config.debugging
686
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_linearize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
687
+ end
688
+ return data, status_code, headers
689
+ end
577
690
  # Rasterize a PDF to an image-based PDF
578
691
  # Rasterize a PDF into an image-based PDF. The output is a PDF where each page is comprised of a high-resolution image, with all text, figures and other components removed.
579
692
  # @param input_file Input file to perform the operation on.
@@ -629,6 +742,61 @@ module CloudmersiveConvertApiClient
629
742
  end
630
743
  return data, status_code, headers
631
744
  end
745
+ # Reduce the file size and optimize a PDF
746
+ # Reduces the file size and optimizes the content of a PDF to minimize its file size.
747
+ # @param input_file Input file to perform the operation on.
748
+ # @param [Hash] opts the optional parameters
749
+ # @return [String]
750
+ def edit_pdf_reduce_file_size(input_file, opts = {})
751
+ data, _status_code, _headers = edit_pdf_reduce_file_size_with_http_info(input_file, opts)
752
+ data
753
+ end
754
+
755
+ # Reduce the file size and optimize a PDF
756
+ # Reduces the file size and optimizes the content of a PDF to minimize its file size.
757
+ # @param input_file Input file to perform the operation on.
758
+ # @param [Hash] opts the optional parameters
759
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
760
+ def edit_pdf_reduce_file_size_with_http_info(input_file, opts = {})
761
+ if @api_client.config.debugging
762
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_reduce_file_size ...'
763
+ end
764
+ # verify the required parameter 'input_file' is set
765
+ if @api_client.config.client_side_validation && input_file.nil?
766
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_reduce_file_size"
767
+ end
768
+ # resource path
769
+ local_var_path = '/convert/edit/pdf/optimize/reduce-file-size'
770
+
771
+ # query parameters
772
+ query_params = {}
773
+
774
+ # header parameters
775
+ header_params = {}
776
+ # HTTP header 'Accept' (if needed)
777
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
778
+ # HTTP header 'Content-Type'
779
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
780
+
781
+ # form parameters
782
+ form_params = {}
783
+ form_params['inputFile'] = input_file
784
+
785
+ # http body (model)
786
+ post_body = nil
787
+ auth_names = ['Apikey']
788
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
789
+ :header_params => header_params,
790
+ :query_params => query_params,
791
+ :form_params => form_params,
792
+ :body => post_body,
793
+ :auth_names => auth_names,
794
+ :return_type => 'String')
795
+ if @api_client.config.debugging
796
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_reduce_file_size\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
797
+ end
798
+ return data, status_code, headers
799
+ end
632
800
  # Remove all PDF annotations, including comments in the document
633
801
  # Removes all of the annotations, including comments and notes, in a PDF document.
634
802
  # @param input_file Input file to perform the operation on.
@@ -746,6 +914,68 @@ module CloudmersiveConvertApiClient
746
914
  end
747
915
  return data, status_code, headers
748
916
  end
917
+ # Change PDF Document's Paper Size
918
+ # Resizes a PDF document's paper size.
919
+ # @param input_file Input file to perform the operation on.
920
+ # @param paper_size The desired paper size for the resized PDF document. Size ranges from A7 (smallest) to A0 (largest).
921
+ # @param [Hash] opts the optional parameters
922
+ # @return [String]
923
+ def edit_pdf_resize(input_file, paper_size, opts = {})
924
+ data, _status_code, _headers = edit_pdf_resize_with_http_info(input_file, paper_size, opts)
925
+ data
926
+ end
927
+
928
+ # Change PDF Document&#39;s Paper Size
929
+ # Resizes a PDF document&#39;s paper size.
930
+ # @param input_file Input file to perform the operation on.
931
+ # @param paper_size The desired paper size for the resized PDF document. Size ranges from A7 (smallest) to A0 (largest).
932
+ # @param [Hash] opts the optional parameters
933
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
934
+ def edit_pdf_resize_with_http_info(input_file, paper_size, opts = {})
935
+ if @api_client.config.debugging
936
+ @api_client.config.logger.debug 'Calling API: EditPdfApi.edit_pdf_resize ...'
937
+ end
938
+ # verify the required parameter 'input_file' is set
939
+ if @api_client.config.client_side_validation && input_file.nil?
940
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditPdfApi.edit_pdf_resize"
941
+ end
942
+ # verify the required parameter 'paper_size' is set
943
+ if @api_client.config.client_side_validation && paper_size.nil?
944
+ fail ArgumentError, "Missing the required parameter 'paper_size' when calling EditPdfApi.edit_pdf_resize"
945
+ end
946
+ # resource path
947
+ local_var_path = '/convert/edit/pdf/resize'
948
+
949
+ # query parameters
950
+ query_params = {}
951
+
952
+ # header parameters
953
+ header_params = {}
954
+ # HTTP header 'Accept' (if needed)
955
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
956
+ # HTTP header 'Content-Type'
957
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
958
+ header_params[:'paperSize'] = paper_size
959
+
960
+ # form parameters
961
+ form_params = {}
962
+ form_params['inputFile'] = input_file
963
+
964
+ # http body (model)
965
+ post_body = nil
966
+ auth_names = ['Apikey']
967
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
968
+ :header_params => header_params,
969
+ :query_params => query_params,
970
+ :form_params => form_params,
971
+ :body => post_body,
972
+ :auth_names => auth_names,
973
+ :return_type => 'String')
974
+ if @api_client.config.debugging
975
+ @api_client.config.logger.debug "API called: EditPdfApi#edit_pdf_resize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
976
+ end
977
+ return data, status_code, headers
978
+ end
749
979
  # Rotate all pages in a PDF document
750
980
  # Rotate all of the pages in a PDF document by a multiple of 90 degrees
751
981
  # @param input_file Input file to perform the operation on.
@@ -349,6 +349,116 @@ module CloudmersiveConvertApiClient
349
349
  end
350
350
  return data, status_code, headers
351
351
  end
352
+ # Validate an HTML file
353
+ # Validate an HTML document file; if the document is not valid, identifies the errors in the document
354
+ # @param input_file Input file to perform the operation on.
355
+ # @param [Hash] opts the optional parameters
356
+ # @return [DocumentValidationResult]
357
+ def validate_document_html_validation(input_file, opts = {})
358
+ data, _status_code, _headers = validate_document_html_validation_with_http_info(input_file, opts)
359
+ data
360
+ end
361
+
362
+ # Validate an HTML file
363
+ # Validate an HTML document file; if the document is not valid, identifies the errors in the document
364
+ # @param input_file Input file to perform the operation on.
365
+ # @param [Hash] opts the optional parameters
366
+ # @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
367
+ def validate_document_html_validation_with_http_info(input_file, opts = {})
368
+ if @api_client.config.debugging
369
+ @api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_html_validation ...'
370
+ end
371
+ # verify the required parameter 'input_file' is set
372
+ if @api_client.config.client_side_validation && input_file.nil?
373
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_html_validation"
374
+ end
375
+ # resource path
376
+ local_var_path = '/convert/validate/html'
377
+
378
+ # query parameters
379
+ query_params = {}
380
+
381
+ # header parameters
382
+ header_params = {}
383
+ # HTTP header 'Accept' (if needed)
384
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
385
+ # HTTP header 'Content-Type'
386
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
387
+
388
+ # form parameters
389
+ form_params = {}
390
+ form_params['inputFile'] = input_file
391
+
392
+ # http body (model)
393
+ post_body = nil
394
+ auth_names = ['Apikey']
395
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
396
+ :header_params => header_params,
397
+ :query_params => query_params,
398
+ :form_params => form_params,
399
+ :body => post_body,
400
+ :auth_names => auth_names,
401
+ :return_type => 'DocumentValidationResult')
402
+ if @api_client.config.debugging
403
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_html_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
404
+ end
405
+ return data, status_code, headers
406
+ end
407
+ # Validate an Image File
408
+ # Validate an image file; if the document is not valid, identifies the errors in the document. Formats supported 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.
409
+ # @param input_file Input file to perform the operation on.
410
+ # @param [Hash] opts the optional parameters
411
+ # @return [DocumentValidationResult]
412
+ def validate_document_image_validation(input_file, opts = {})
413
+ data, _status_code, _headers = validate_document_image_validation_with_http_info(input_file, opts)
414
+ data
415
+ end
416
+
417
+ # Validate an Image File
418
+ # Validate an image file; if the document is not valid, identifies the errors in the document. Formats supported 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.
419
+ # @param input_file Input file to perform the operation on.
420
+ # @param [Hash] opts the optional parameters
421
+ # @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
422
+ def validate_document_image_validation_with_http_info(input_file, opts = {})
423
+ if @api_client.config.debugging
424
+ @api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_image_validation ...'
425
+ end
426
+ # verify the required parameter 'input_file' is set
427
+ if @api_client.config.client_side_validation && input_file.nil?
428
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_image_validation"
429
+ end
430
+ # resource path
431
+ local_var_path = '/convert/validate/image'
432
+
433
+ # query parameters
434
+ query_params = {}
435
+
436
+ # header parameters
437
+ header_params = {}
438
+ # HTTP header 'Accept' (if needed)
439
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
440
+ # HTTP header 'Content-Type'
441
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
442
+
443
+ # form parameters
444
+ form_params = {}
445
+ form_params['inputFile'] = input_file
446
+
447
+ # http body (model)
448
+ post_body = nil
449
+ auth_names = ['Apikey']
450
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
451
+ :header_params => header_params,
452
+ :query_params => query_params,
453
+ :form_params => form_params,
454
+ :body => post_body,
455
+ :auth_names => auth_names,
456
+ :return_type => 'DocumentValidationResult')
457
+ if @api_client.config.debugging
458
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_image_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
459
+ end
460
+ return data, status_code, headers
461
+ end
352
462
  # Validate a JSON file
353
463
  # Validate a JSON (JavaScript Object Notation) document file; if the document is not valid, identifies the errors in the document
354
464
  # @param input_file Input file to perform the operation on.
@@ -679,6 +789,61 @@ module CloudmersiveConvertApiClient
679
789
  end
680
790
  return data, status_code, headers
681
791
  end
792
+ # Validate an TXT file
793
+ # Validate an TXT document file; if the document is not valid, identifies the errors in the document
794
+ # @param input_file Input file to perform the operation on.
795
+ # @param [Hash] opts the optional parameters
796
+ # @return [DocumentValidationResult]
797
+ def validate_document_txt_validation(input_file, opts = {})
798
+ data, _status_code, _headers = validate_document_txt_validation_with_http_info(input_file, opts)
799
+ data
800
+ end
801
+
802
+ # Validate an TXT file
803
+ # Validate an TXT document file; if the document is not valid, identifies the errors in the document
804
+ # @param input_file Input file to perform the operation on.
805
+ # @param [Hash] opts the optional parameters
806
+ # @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
807
+ def validate_document_txt_validation_with_http_info(input_file, opts = {})
808
+ if @api_client.config.debugging
809
+ @api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_txt_validation ...'
810
+ end
811
+ # verify the required parameter 'input_file' is set
812
+ if @api_client.config.client_side_validation && input_file.nil?
813
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_txt_validation"
814
+ end
815
+ # resource path
816
+ local_var_path = '/convert/validate/txt'
817
+
818
+ # query parameters
819
+ query_params = {}
820
+
821
+ # header parameters
822
+ header_params = {}
823
+ # HTTP header 'Accept' (if needed)
824
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
825
+ # HTTP header 'Content-Type'
826
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
827
+
828
+ # form parameters
829
+ form_params = {}
830
+ form_params['inputFile'] = input_file
831
+
832
+ # http body (model)
833
+ post_body = nil
834
+ auth_names = ['Apikey']
835
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
836
+ :header_params => header_params,
837
+ :query_params => query_params,
838
+ :form_params => form_params,
839
+ :body => post_body,
840
+ :auth_names => auth_names,
841
+ :return_type => 'DocumentValidationResult')
842
+ if @api_client.config.debugging
843
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_txt_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
844
+ end
845
+ return data, status_code, headers
846
+ end
682
847
  # Validate a Excel document (XLSX)
683
848
  # Validate a Excel document (XLSX); if the document is not valid, identifies the errors in the document
684
849
  # @param input_file Input file to perform the operation on.
@@ -23,6 +23,8 @@ module CloudmersiveConvertApiClient
23
23
  # Creates an HTML embed code for a simple web-based viewer of a document; supports Office document types and PDF.
24
24
  # @param input_file Input file to perform the operation on.
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [Integer] :width Optional; width of the output viewer in pixels
27
+ # @option opts [Integer] :height Optional; height of the output viewer in pixels
26
28
  # @return [ViewerResponse]
27
29
  def viewer_tools_create_simple(input_file, opts = {})
28
30
  data, _status_code, _headers = viewer_tools_create_simple_with_http_info(input_file, opts)
@@ -33,6 +35,8 @@ module CloudmersiveConvertApiClient
33
35
  # Creates an HTML embed code for a simple web-based viewer of a document; supports Office document types and PDF.
34
36
  # @param input_file Input file to perform the operation on.
35
37
  # @param [Hash] opts the optional parameters
38
+ # @option opts [Integer] :width Optional; width of the output viewer in pixels
39
+ # @option opts [Integer] :height Optional; height of the output viewer in pixels
36
40
  # @return [Array<(ViewerResponse, Fixnum, Hash)>] ViewerResponse data, response status code and response headers
37
41
  def viewer_tools_create_simple_with_http_info(input_file, opts = {})
38
42
  if @api_client.config.debugging
@@ -54,6 +58,8 @@ module CloudmersiveConvertApiClient
54
58
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
55
59
  # HTTP header 'Content-Type'
56
60
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
61
+ header_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
62
+ header_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
57
63
 
58
64
  # form parameters
59
65
  form_params = {}