public class Converter extends Object
Represents main class that controls document conversion process.
Constructor and Description |
---|
Converter(InputStream document)
Initializes new instance of
Converter class. |
Converter(InputStream document,
ConverterSettings settings)
Initializes new instance of
Converter class. |
Converter(InputStream document,
com.groupdocs.conversion.contracts.Func1<FileType,LoadOptions> loadOptions)
Initializes new instance of
|
Converter(InputStream document,
com.groupdocs.conversion.contracts.Func1<FileType,LoadOptions> loadOptions,
ConverterSettings settings)
Initializes new instance of
|
Converter(InputStream document,
LoadOptions loadOptions)
Initializes new instance of
Converter class. |
Converter(InputStream document,
LoadOptions loadOptions,
ConverterSettings settings)
Initializes new instance of
Converter class. |
Converter(String filePath)
Initializes new instance of
Converter class. |
Converter(String filePath,
ConverterSettings settings)
Initializes new instance of
Converter class. |
Converter(String filePath,
com.groupdocs.conversion.contracts.Func1<FileType,LoadOptions> loadOptions)
|
Converter(String filePath,
com.groupdocs.conversion.contracts.Func1<FileType,LoadOptions> loadOptions,
ConverterSettings settings)
|
Converter(String filePath,
LoadOptions loadOptions)
Initializes new instance of
Converter class. |
Converter(String filePath,
LoadOptions loadOptions,
ConverterSettings settings)
Initializes new instance of
Converter class. |
Modifier and Type | Method and Description |
---|---|
void |
convert(OutputStream document,
ConvertedDocumentStream documentCompleted,
ConvertOptions convertOptions)
Converts source document.
|
void |
convert(OutputStream document,
ConvertedPageStream documentCompleted,
ConvertOptions convertOptions)
Converts source document.
|
void |
convert(OutputStream document,
ConvertOptions convertOptions)
Converts source document.
|
void |
convert(OutputStream document,
com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
|
void |
convert(SaveDocumentStream document,
ConvertedDocumentStream documentCompleted,
com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
|
void |
convert(SaveDocumentStream document,
com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
|
void |
convert(com.groupdocs.conversion.contracts.SaveDocumentStreamForFileType document,
ConvertedDocumentStream documentCompleted,
ConvertOptions convertOptions)
|
void |
convert(com.groupdocs.conversion.contracts.SaveDocumentStreamForFileType document,
ConvertedDocumentStream documentCompleted,
com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
|
void |
convert(com.groupdocs.conversion.contracts.SaveDocumentStreamForFileType document,
ConvertOptions convertOptions)
|
void |
convert(com.groupdocs.conversion.contracts.SaveDocumentStreamForFileType document,
com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
|
void |
convert(SavePageStream document,
ConvertedPageStream documentCompleted,
com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
|
void |
convert(com.groupdocs.conversion.contracts.SavePageStreamForFileType document,
ConvertedPageStream documentCompleted,
ConvertOptions convertOptions)
|
void |
convert(com.groupdocs.conversion.contracts.SavePageStreamForFileType document,
ConvertedPageStream documentCompleted,
com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
|
void |
convert(com.groupdocs.conversion.contracts.SavePageStreamForFileType document,
ConvertOptions convertOptions)
|
void |
convert(com.groupdocs.conversion.contracts.SavePageStreamForFileType document,
com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
|
void |
convert(String filePath,
ConvertOptions convertOptions)
Converts source document.
|
void |
convertPageByPage(OutputStream document,
ConvertOptions convertOptions)
Converts source document.
|
void |
dispose()
Releases resources.
|
static List<PossibleConversions> |
getAllPossibleConversions()
Gets all supported conversions
|
IDocumentInfo |
getDocumentInfo()
Gets source document info - pages count and other document properties specific to the file type.
|
PossibleConversions |
getPossibleConversions()
Gets possible conversions for the source document.
|
static PossibleConversions |
getPossibleConversions(String extension)
Gets supported conversions for provided document extension
|
public Converter(InputStream document)
Initializes new instance of Converter
class.
document
- readable stream.com.aspose.ms.System.ArgumentNullException
- Thrown when document
is null.public Converter(InputStream document, ConverterSettings settings)
Initializes new instance of Converter
class.
document
- A readable stream.settings
- The Converter settings.public Converter(InputStream document, LoadOptions loadOptions)
Initializes new instance of Converter
class.
document
- A readable stream.loadOptions
- The load options.public Converter(InputStream document, LoadOptions loadOptions, ConverterSettings settings)
Initializes new instance of Converter
class.
document
- A readable stream.loadOptions
- The document load options.settings
- The Converter settings.public Converter(InputStream document, com.groupdocs.conversion.contracts.Func1<FileType,LoadOptions> loadOptions)
document
- A readable stream.loadOptions
- The methods that returns document load options.public Converter(InputStream document, com.groupdocs.conversion.contracts.Func1<FileType,LoadOptions> loadOptions, ConverterSettings settings)
document
- The method that returns readable stream.loadOptions
- The methods that returns document load options.settings
- The Converter settings.public Converter(String filePath)
Initializes new instance of Converter
class.
filePath
- The file path to the source document.public Converter(String filePath, ConverterSettings settings)
Initializes new instance of Converter
class.
filePath
- The file path to the source document.settings
- The Converter settings.public Converter(String filePath, LoadOptions loadOptions)
Initializes new instance of Converter
class.
filePath
- The file path to the source document.loadOptions
- The load options.public Converter(String filePath, LoadOptions loadOptions, ConverterSettings settings)
Initializes new instance of Converter
class.
filePath
- The file path to the source document.loadOptions
- The document load options.settings
- The Converter settings.public Converter(String filePath, com.groupdocs.conversion.contracts.Func1<FileType,LoadOptions> loadOptions)
filePath
- The file path to the source document.loadOptions
- The document load options.public Converter(String filePath, com.groupdocs.conversion.contracts.Func1<FileType,LoadOptions> loadOptions, ConverterSettings settings)
filePath
- The file path to the source document.loadOptions
- The document load options.settings
- The Converter settings.public final void convert(OutputStream document, ConvertOptions convertOptions)
Converts source document. Saves the whole converted document.
document
- The output stream.convertOptions
- The convert options specific to desired target file type.public void convert(OutputStream document, ConvertedDocumentStream documentCompleted, ConvertOptions convertOptions)
document
- output streamdocumentCompleted
- the delegate that receive converted document stream.convertOptions
- the convert options specific to desired target file type.public void convert(SaveDocumentStream document, com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
document
- The stream.convertOptionsProvider
- Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type.public void convert(SaveDocumentStream document, ConvertedDocumentStream documentCompleted, com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
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.public void convert(com.groupdocs.conversion.contracts.SaveDocumentStreamForFileType document, ConvertOptions convertOptions)
document
- The delegate that saves converted document to a stream.convertOptions
- The convert options specific to desired target file type.public void convert(com.groupdocs.conversion.contracts.SaveDocumentStreamForFileType document, ConvertedDocumentStream documentCompleted, ConvertOptions convertOptions)
document
- The delegate that saves converted document to a streamdocumentCompleted
- The delegate that receive converted document streamconvertOptions
- The convert options specific to desired target file typepublic void convert(com.groupdocs.conversion.contracts.SaveDocumentStreamForFileType document, com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
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.public void convert(com.groupdocs.conversion.contracts.SaveDocumentStreamForFileType document, ConvertedDocumentStream documentCompleted, com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
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.public final void convert(String filePath, ConvertOptions convertOptions)
Converts source document. Saves the whole converted document.
filePath
- The file path to the source document.convertOptions
- The convert options specific to desired target file type.public final void convertPageByPage(OutputStream document, ConvertOptions convertOptions)
Converts source document. Saves the converted document page by page.
document
- The output stream.convertOptions
- The convert options specific to desired target file type.public void convert(OutputStream document, ConvertedPageStream documentCompleted, ConvertOptions convertOptions)
document
- The output stream.documentCompleted
- The delegate that receive converted document page stream.convertOptions
- The convert options specific to desired target file type.public void convert(OutputStream document, com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
document
- The output stream.convertOptionsProvider
- Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type.public void convert(SavePageStream document, ConvertedPageStream documentCompleted, com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
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.public void convert(com.groupdocs.conversion.contracts.SavePageStreamForFileType document, ConvertOptions convertOptions)
document
- The delegate that saves converted document to a stream.convertOptions
- The convert options specific to desired target file type.public void convert(com.groupdocs.conversion.contracts.SavePageStreamForFileType document, ConvertedPageStream documentCompleted, ConvertOptions convertOptions)
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.public void convert(com.groupdocs.conversion.contracts.SavePageStreamForFileType document, com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
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.public void convert(com.groupdocs.conversion.contracts.SavePageStreamForFileType document, ConvertedPageStream documentCompleted, com.groupdocs.conversion.contracts.ConvertOptionsProvider convertOptionsProvider)
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.public final IDocumentInfo getDocumentInfo()
Gets source document info - pages count and other document properties specific to the file type.
public final PossibleConversions getPossibleConversions()
Gets possible conversions for the source document.
public static List<PossibleConversions> getAllPossibleConversions()
public static PossibleConversions getPossibleConversions(String extension)
extension
- Document extensionpublic final void dispose()
Releases resources.