=begin #convertapi #Convert API lets you effortlessly convert file formats and types. OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.3.1 =end require 'spec_helper' require 'json' # Unit tests for CloudmersiveConvertApiClient::ConvertDocumentApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'ConvertDocumentApi' do before do # run before each test @instance = CloudmersiveConvertApiClient::ConvertDocumentApi.new end after do # run after each test end describe 'test an instance of ConvertDocumentApi' do it 'should create an instance of ConvertDocumentApi' do expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::ConvertDocumentApi) end end # unit tests for convert_document_autodetect_get_info # Get document type information # Auto-detects a document's type information; does not require file extension. Analyzes file contents to confirm file type. Even if no file extension is present, the auto-detect system will reliably analyze the contents of the file and identify its file type. Supports over 100 image file formats, Office document file formats, PDF, and more. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [AutodetectGetInfoResult] describe 'convert_document_autodetect_get_info test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_autodetect_to_pdf # Convert Document to PDF # 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. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_autodetect_to_pdf test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_autodetect_to_png_array # Convert Document to PNG array # 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. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [AutodetectToPngResult] describe 'convert_document_autodetect_to_png_array test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_autodetect_to_txt # Convert Document to Text # Automatically detect file type and convert it to Text. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT) and PDF files. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [TextConversionResult] describe 'convert_document_autodetect_to_txt test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_csv_to_xlsx # CSV to Excel XLSX # Convert CSV file to Office Excel XLSX Workbooks file format. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_csv_to_xlsx test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_doc_to_docx # Word DOC (97-03) to DOCX # Convert/upgrade Office Word (97-2003 Format) Documents (doc) to the modern DOCX format # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_doc_to_docx test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_doc_to_pdf # Word DOC (97-03) to PDF # Convert Office Word (97-2003 Format) Documents (doc) to standard PDF # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_doc_to_pdf test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_docx_to_pdf # Word DOCX to PDF # Convert Office Word Documents (docx) to standard PDF # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_docx_to_pdf test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_docx_to_txt # Word DOCX to Text # Convert Office Word Documents (docx) to text # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [TextConversionResult] describe 'convert_document_docx_to_txt test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_html_to_pdf # HTML to PDF # Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to PDF. To use external files such as images, use an absolute URL to the file. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_html_to_pdf test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_html_to_png # HTML to PNG array # Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to an array of PNG images, one for each page. To use external files in your HTML such as images, use an absolute URL to the file. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [PdfToPngResult] describe 'convert_document_html_to_png test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_pdf_to_docx # PDF to Word DOCX # Convert standard PDF to Office Word Documents (docx). Converts a PDF at high fidelity into Word format, where it can be easily edited and processed. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_pdf_to_docx test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_pdf_to_png_array # PDF to PNG Array # Convert PDF document to PNG array, one image per page. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [PdfToPngResult] describe 'convert_document_pdf_to_png_array test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_pdf_to_png_single # PDF to Single PNG image # Convert PDF document to a single tall PNG image, by stacking/concatenating the images vertically into a single \"tall\" image # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_pdf_to_png_single test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_pdf_to_pptx # PDF to PowerPoint PPTX # Convert standard PDF to Office PowerPoint Presentation (pptx). Converts a PDF file at high fidelity into PowerPoint format, where it can be easily edited and processed. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_pdf_to_pptx test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_pdf_to_txt # PDF to Text # PDF document to text # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [TextConversionResult] describe 'convert_document_pdf_to_txt test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_ppt_to_pdf # PowerPoint PPT (97-03) to PDF # Convert Office PowerPoint (97-2003) Documents (ppt) to standard PDF # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_ppt_to_pdf test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_ppt_to_pptx # PowerPoint PPT (97-03) to PPTX # Convert/upgrade Office PowerPoint (97-2003) Documents (ppt) to modern PPTX # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_ppt_to_pptx test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_pptx_to_pdf # PowerPoint PPTX to PDF # Convert Office PowerPoint Documents (pptx) to standard PDF # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_pptx_to_pdf test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_pptx_to_txt # PowerPoint PPTX to Text # Convert Office PowerPoint Documents (pptx) to standard Text # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [TextConversionResult] describe 'convert_document_pptx_to_txt test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_xls_to_csv # Excel XLS (97-03) to CSV # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to standard CSV format. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_xls_to_csv test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_xls_to_pdf # Excel XLS (97-03) to PDF # Convert Office Excel (97-2003) Workbooks (xls) to standard PDF. Converts all worksheets in the workbook to PDF. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_xls_to_pdf test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_xls_to_xlsx # Excel XLS (97-03) to XLSX # Convert/upgrade Office Excel (97-2003) Workbooks (xls) to modern XLSX format. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_xls_to_xlsx test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_xlsx_to_csv # Excel XLSX to CSV # Convert Office Excel Workbooks (XLSX) to standard Comma-Separated Values (CSV) format. Supports both XLSX and XLSB file Excel formats. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @option opts [String] :output_encoding Optional, set the output text encoding for the result; possible values are UTF-8 and UTF-32. Default is UTF-32. # @return [String] describe 'convert_document_xlsx_to_csv test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_xlsx_to_pdf # Excel XLSX to PDF # Convert Office Excel Workbooks (XLSX) to standard PDF. Converts all worksheets in the workbook to PDF. Supports both XLSX and XLSB Excel file formats. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [String] describe 'convert_document_xlsx_to_pdf test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for convert_document_xlsx_to_txt # Excel XLSX to Text # Convert Office Excel Workbooks (XLSX) to standard Text. Converts all worksheets in the workbook to Text. Supports both XLSX and XLSB file formats. # @param input_file Input file to perform the operation on. # @param [Hash] opts the optional parameters # @return [TextConversionResult] describe 'convert_document_xlsx_to_txt test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end