com.groupdocs.conversion

Class Converter



  • public class Converter
    extends Object

    Represents main class that controls document conversion process.

    • Method Detail

      • convert

        public void convert(SaveDocumentStream document,
                   com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
        Converts source document. Saves the whole converted document. Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        document - The stream.
        convertOptionsProvider - Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type.
      • convert

        public void convert(SaveDocumentStream document,
                   ConvertedDocumentStream documentCompleted,
                   com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
        Converts source document. Saves the whole converted document. Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        document - The stream.
        documentCompleted - The delegate that receive converted document stream.
        convertOptionsProvider - Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type.
      • convert

        public void convert(com.groupdocs.conversion.contracts.SaveDocumentStreamForFileType document,
                   ConvertOptions convertOptions)
        Converts source document. Saves the whole converted document. Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        document - The delegate that saves converted document to a stream.
        convertOptions - The convert options specific to desired target file type.
      • convert

        public void convert(com.groupdocs.conversion.contracts.SaveDocumentStreamForFileType document,
                   ConvertedDocumentStream documentCompleted,
                   ConvertOptions convertOptions)
        Converts source document. Saves the whole converted document. Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        document - The delegate that saves converted document to a stream
        documentCompleted - The delegate that receive converted document stream
        convertOptions - The convert options specific to desired target file type
      • convert

        public void convert(com.groupdocs.conversion.contracts.SaveDocumentStreamForFileType document,
                   com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
        Converts source document. Saves the whole converted document. Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        document - The delegate that saves converted document to a stream.
        convertOptionsProvider - Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type.
      • convert

        public void convert(com.groupdocs.conversion.contracts.SaveDocumentStreamForFileType document,
                   ConvertedDocumentStream documentCompleted,
                   com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
        Converts source document. Saves the whole converted document. Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        document - The delegate that saves converted document to a stream.
        documentCompleted - The delegate that receive converted document stream.
        convertOptionsProvider - Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type.
      • convert

        public final void convert(String filePath,
                   ConvertOptions convertOptions)

        Converts source document. Saves the whole converted document.

        Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        filePath - The file path to the source document.
        convertOptions - The convert options specific to desired target file type.
      • convert

        public void convert(OutputStream document,
                   com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
        Converts source document. Saves the converted document page by page. Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        document - The output stream.
        convertOptionsProvider - Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type.
      • convert

        public void convert(SavePageStream document,
                   ConvertedPageStream documentCompleted,
                   com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
        Converts source document. Saves the converted document page by page. Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        document - The delegate that saves converted document page to a stream.
        documentCompleted - The delegate that receive converted document page stream.
        convertOptionsProvider - Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type.
      • convert

        public void convert(com.groupdocs.conversion.contracts.SavePageStreamForFileType document,
                   ConvertOptions convertOptions)
        Converts source document. Saves the converted document page by page. Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        document - The delegate that saves converted document to a stream.
        convertOptions - The convert options specific to desired target file type.
      • convert

        public void convert(com.groupdocs.conversion.contracts.SavePageStreamForFileType document,
                   ConvertedPageStream documentCompleted,
                   ConvertOptions convertOptions)
        Converts source document. Saves the converted document page by page. Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        document - The delegate that saves converted document page to a stream.
        documentCompleted - The delegate that receive converted document page stream.
        convertOptions - The convert options specific to desired target file type.
      • convert

        public void convert(com.groupdocs.conversion.contracts.SavePageStreamForFileType document,
                   com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
        Converts source document. Saves the converted document page by page. Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        document - The delegate that saves converted document to a stream.
        convertOptionsProvider - Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type.
      • convert

        public void convert(com.groupdocs.conversion.contracts.SavePageStreamForFileType document,
                   ConvertedPageStream documentCompleted,
                   com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
        Converts source document. Saves the converted document page by page. Learn more More about document conversion basic scenarios: How to convert document in 3 steps Conversion use cases, advanced settings and customizations: Convert document with advanced settings
        Parameters:
        document - The delegate that saves converted document page to a stream.
        documentCompleted - The delegate that receive converted document page stream.
        convertOptionsProvider - Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type.
      • getDocumentInfo

        public final IDocumentInfo getDocumentInfo()

        Gets source document info - pages count and other document properties specific to the file type.

        Learn more Learn more about converted document - file type, pages count, creation date and many other format specific properties: How to get document info
        Returns:
        document info
      • dispose

        public final void dispose()

        Releases resources.