cloudmersive-convert-api-client 2.0.8 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) 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/EditPdfApi.md +169 -0
  9. data/docs/GetDocxMetadataPropertiesResponse.md +16 -0
  10. data/docs/ValidateDocumentApi.md +275 -0
  11. data/docs/ViewerToolsApi.md +8 -2
  12. data/docs/ZipArchiveApi.md +80 -0
  13. data/lib/cloudmersive-convert-api-client.rb +3 -0
  14. data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +117 -4
  15. data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +156 -0
  16. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +329 -0
  17. data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +168 -0
  18. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +275 -0
  19. data/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +6 -0
  20. data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +92 -0
  21. data/lib/cloudmersive-convert-api-client/models/docx_metadata_custom_property.rb +236 -0
  22. data/lib/cloudmersive-convert-api-client/models/docx_set_custom_metadata_properties_request.rb +223 -0
  23. data/lib/cloudmersive-convert-api-client/models/get_docx_metadata_properties_response.rb +268 -0
  24. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  25. data/spec/api/convert_data_api_spec.rb +26 -1
  26. data/spec/api/convert_document_api_spec.rb +35 -0
  27. data/spec/api/edit_document_api_spec.rb +72 -0
  28. data/spec/api/edit_pdf_api_spec.rb +37 -0
  29. data/spec/api/validate_document_api_spec.rb +60 -0
  30. data/spec/api/viewer_tools_api_spec.rb +2 -0
  31. data/spec/api/zip_archive_api_spec.rb +23 -0
  32. data/spec/models/docx_metadata_custom_property_spec.rb +71 -0
  33. data/spec/models/docx_set_custom_metadata_properties_request_spec.rb +53 -0
  34. data/spec/models/get_docx_metadata_properties_response_spec.rb +89 -0
  35. 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.
@@ -349,6 +349,171 @@ 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
462
+ # Validate a JPG File
463
+ # Validate a JPEG image file; if the document is not valid, identifies the errors in the document..
464
+ # @param input_file Input file to perform the operation on.
465
+ # @param [Hash] opts the optional parameters
466
+ # @return [DocumentValidationResult]
467
+ def validate_document_jpg_validation(input_file, opts = {})
468
+ data, _status_code, _headers = validate_document_jpg_validation_with_http_info(input_file, opts)
469
+ data
470
+ end
471
+
472
+ # Validate a JPG File
473
+ # Validate a JPEG image file; if the document is not valid, identifies the errors in the document..
474
+ # @param input_file Input file to perform the operation on.
475
+ # @param [Hash] opts the optional parameters
476
+ # @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
477
+ def validate_document_jpg_validation_with_http_info(input_file, opts = {})
478
+ if @api_client.config.debugging
479
+ @api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_jpg_validation ...'
480
+ end
481
+ # verify the required parameter 'input_file' is set
482
+ if @api_client.config.client_side_validation && input_file.nil?
483
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_jpg_validation"
484
+ end
485
+ # resource path
486
+ local_var_path = '/convert/validate/jpg'
487
+
488
+ # query parameters
489
+ query_params = {}
490
+
491
+ # header parameters
492
+ header_params = {}
493
+ # HTTP header 'Accept' (if needed)
494
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
495
+ # HTTP header 'Content-Type'
496
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
497
+
498
+ # form parameters
499
+ form_params = {}
500
+ form_params['inputFile'] = input_file
501
+
502
+ # http body (model)
503
+ post_body = nil
504
+ auth_names = ['Apikey']
505
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
506
+ :header_params => header_params,
507
+ :query_params => query_params,
508
+ :form_params => form_params,
509
+ :body => post_body,
510
+ :auth_names => auth_names,
511
+ :return_type => 'DocumentValidationResult')
512
+ if @api_client.config.debugging
513
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_jpg_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
514
+ end
515
+ return data, status_code, headers
516
+ end
352
517
  # Validate a JSON file
353
518
  # Validate a JSON (JavaScript Object Notation) document file; if the document is not valid, identifies the errors in the document
354
519
  # @param input_file Input file to perform the operation on.
@@ -514,6 +679,61 @@ module CloudmersiveConvertApiClient
514
679
  end
515
680
  return data, status_code, headers
516
681
  end
682
+ # Validate a PNG File
683
+ # Validate a PNG image file; if the document is not valid, identifies the errors in the document.
684
+ # @param input_file Input file to perform the operation on.
685
+ # @param [Hash] opts the optional parameters
686
+ # @return [DocumentValidationResult]
687
+ def validate_document_png_validation(input_file, opts = {})
688
+ data, _status_code, _headers = validate_document_png_validation_with_http_info(input_file, opts)
689
+ data
690
+ end
691
+
692
+ # Validate a PNG File
693
+ # Validate a PNG image file; if the document is not valid, identifies the errors in the document.
694
+ # @param input_file Input file to perform the operation on.
695
+ # @param [Hash] opts the optional parameters
696
+ # @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
697
+ def validate_document_png_validation_with_http_info(input_file, opts = {})
698
+ if @api_client.config.debugging
699
+ @api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_png_validation ...'
700
+ end
701
+ # verify the required parameter 'input_file' is set
702
+ if @api_client.config.client_side_validation && input_file.nil?
703
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_png_validation"
704
+ end
705
+ # resource path
706
+ local_var_path = '/convert/validate/png'
707
+
708
+ # query parameters
709
+ query_params = {}
710
+
711
+ # header parameters
712
+ header_params = {}
713
+ # HTTP header 'Accept' (if needed)
714
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
715
+ # HTTP header 'Content-Type'
716
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
717
+
718
+ # form parameters
719
+ form_params = {}
720
+ form_params['inputFile'] = input_file
721
+
722
+ # http body (model)
723
+ post_body = nil
724
+ auth_names = ['Apikey']
725
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
726
+ :header_params => header_params,
727
+ :query_params => query_params,
728
+ :form_params => form_params,
729
+ :body => post_body,
730
+ :auth_names => auth_names,
731
+ :return_type => 'DocumentValidationResult')
732
+ if @api_client.config.debugging
733
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_png_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
734
+ end
735
+ return data, status_code, headers
736
+ end
517
737
  # Validate a PowerPoint presentation (PPTX)
518
738
  # Validate a PowerPoint presentation (PPTX); if the document is not valid, identifies the errors in the document
519
739
  # @param input_file Input file to perform the operation on.
@@ -679,6 +899,61 @@ module CloudmersiveConvertApiClient
679
899
  end
680
900
  return data, status_code, headers
681
901
  end
902
+ # Validate an TXT file
903
+ # Validate an TXT document file; if the document is not valid, identifies the errors in the document
904
+ # @param input_file Input file to perform the operation on.
905
+ # @param [Hash] opts the optional parameters
906
+ # @return [DocumentValidationResult]
907
+ def validate_document_txt_validation(input_file, opts = {})
908
+ data, _status_code, _headers = validate_document_txt_validation_with_http_info(input_file, opts)
909
+ data
910
+ end
911
+
912
+ # Validate an TXT file
913
+ # Validate an TXT document file; if the document is not valid, identifies the errors in the document
914
+ # @param input_file Input file to perform the operation on.
915
+ # @param [Hash] opts the optional parameters
916
+ # @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
917
+ def validate_document_txt_validation_with_http_info(input_file, opts = {})
918
+ if @api_client.config.debugging
919
+ @api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_txt_validation ...'
920
+ end
921
+ # verify the required parameter 'input_file' is set
922
+ if @api_client.config.client_side_validation && input_file.nil?
923
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_txt_validation"
924
+ end
925
+ # resource path
926
+ local_var_path = '/convert/validate/txt'
927
+
928
+ # query parameters
929
+ query_params = {}
930
+
931
+ # header parameters
932
+ header_params = {}
933
+ # HTTP header 'Accept' (if needed)
934
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
935
+ # HTTP header 'Content-Type'
936
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
937
+
938
+ # form parameters
939
+ form_params = {}
940
+ form_params['inputFile'] = input_file
941
+
942
+ # http body (model)
943
+ post_body = nil
944
+ auth_names = ['Apikey']
945
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
946
+ :header_params => header_params,
947
+ :query_params => query_params,
948
+ :form_params => form_params,
949
+ :body => post_body,
950
+ :auth_names => auth_names,
951
+ :return_type => 'DocumentValidationResult')
952
+ if @api_client.config.debugging
953
+ @api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_txt_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
954
+ end
955
+ return data, status_code, headers
956
+ end
682
957
  # Validate a Excel document (XLSX)
683
958
  # Validate a Excel document (XLSX); if the document is not valid, identifies the errors in the document
684
959
  # @param input_file Input file to perform the operation on.