com.groupdocs.conversion.handler

Class ConversionHandler



  • public class ConversionHandler
    extends Object

    Create instance of ConversionHandler class to convert between different file formats

    • Method Detail

      • setConfig

        public void setConfig(ConversionConfig value)

        Conversion config

        Parameters:
        value -
      • getDocumentLoader

        public com.groupdocs.conversion.domain.IDocumentLoader getDocumentLoader()

        Document loader

        Returns:
      • setDocumentLoader

        public void setDocumentLoader(com.groupdocs.conversion.domain.IDocumentLoader value)

        Document loader

        Parameters:
        value -
      • getConverterFactory

        public com.groupdocs.conversion.converter.IConverterFactory getConverterFactory()

        Converter factory

        Returns:
      • setConverterFactory

        public void setConverterFactory(com.groupdocs.conversion.converter.IConverterFactory value)

        Converter factory

        Parameters:
        value -
      • convert

        public ConvertedDocument convert(InputStream fileStream,
                                String fileName,
                                com.groupdocs.conversion.options.load.LoadOptions loadOptions,
                                com.groupdocs.conversion.options.save.SaveOptions saveOptions)

        Converts the content of the stream

        Parameters:
        fileStream -
        fileName -
        loadOptions -
        saveOptions -
        Returns:
      • convert

        public ConvertedDocument convert(InputStream fileStream,
                                String fileName,
                                com.groupdocs.conversion.options.save.SaveOptions saveOptions)

        Converts the content of the stream

        Parameters:
        fileStream -
        fileName -
        saveOptions -
        Returns:
      • convert

        public ConvertedDocument convert(InputStream fileStream,
                                com.groupdocs.conversion.options.load.LoadOptions loadOptions,
                                com.groupdocs.conversion.options.save.SaveOptions saveOptions)

        Converts the content of the stream

        Parameters:
        fileStream -
        loadOptions -
        saveOptions -
        Returns:
      • convert

        public ConvertedDocument convert(InputStream fileStream,
                                com.groupdocs.conversion.options.save.SaveOptions saveOptions)

        Converts the content of the stream

        Parameters:
        fileStream -
        saveOptions -
        Returns:
      • convert

        public ConvertedDocument convert(String guid,
                                com.groupdocs.conversion.options.load.LoadOptions loadOptions,
                                com.groupdocs.conversion.options.save.SaveOptions saveOptions)

        Converts the file specified by the guid

        Parameters:
        guid -
        loadOptions -
        saveOptions -
        Returns:
      • convert

        public ConvertedDocument convert(String guid,
                                com.groupdocs.conversion.options.save.SaveOptions saveOptions)

        Converts the file specified by the guid

        Parameters:
        guid -
        saveOptions -
        Returns:
      • setConversionProgressListener

        public void setConversionProgressListener(IConversionProgressListener progressListener)

        Set conversion progress listener

        Parameters:
        progressListener -
      • setConversionStatusListener

        public void setConversionStatusListener(IConversionStatusListener statusListener)

        Set conversion status listener

        Parameters:
        statusListener -
      • getSaveOptions

        public Dictionary<String,com.groupdocs.conversion.options.save.SaveOptions> getSaveOptions(String sourceDocumentExtension)

        Returns all possible SaveOptions for provided source document type

        Parameters:
        sourceDocumentExtension - Source document extension
        Returns:
      • getSaveOptions

        public Dictionary<String,com.groupdocs.conversion.options.save.SaveOptions> getSaveOptions(InputStream sourceDocument)

        Returns all possible SaveOptions for provided source document type

        Parameters:
        sourceDocument - Source document stream
        Returns:
      • getPossibleConversions

        public com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,String[]> getPossibleConversions()

        Return all possible conversions

        Returns:
      • getPossibleConversions

        public String[] getPossibleConversions(String sourceDocumentExtension)

        Return all possible conversions for provided source document type

        Parameters:
        sourceDocumentExtension - Source document extension
        Returns:
      • getPossibleConversions

        public String[] getPossibleConversions(InputStream sourceDocument)

        Return all possible conversions for provided source document type

        Parameters:
        sourceDocument - Source document stream
        Returns:
      • isLicensed

        public boolean isLicensed()

        Indicates is the product licensed or not

        Returns:
      • getDocumentInfo

        public DocumentInfo getDocumentInfo(InputStream fileStream,
                                   com.groupdocs.conversion.options.load.LoadOptions loadOptions)

        Returns information for provided document

        Parameters:
        fileStream -
        loadOptions -
        Returns:
      • getDocumentInfo

        public DocumentInfo getDocumentInfo(InputStream fileStream)

        Returns information for provided document

        Parameters:
        fileStream -
        Returns:
      • getDocumentInfo

        public DocumentInfo getDocumentInfo(String guid,
                                   com.groupdocs.conversion.options.load.LoadOptions loadOptions)

        Returns information for provided document

        Parameters:
        guid -
        loadOptions -
        Returns:
      • getDocumentInfo

        public DocumentInfo getDocumentInfo(String guid)

        Returns information for provided document

        Parameters:
        guid -
        Returns:

Copyright © 2019. All rights reserved.