Converter class

Converter class

Represents main class that controls document conversion process.

The Converter type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of Converter.
init Initializes a new Converter instance.
init Initializes a new Converter instance.
init Initializes a new Converter with explicit conversion events.
init Initializes a new Converter instance with explicit conversion events.
init Initializes a new Converter instance.
init Initializes a new Converter instance.
init Initializes new instance of Converter class.
init Initializes a new Converter with explicit conversion events.
init Initializes a new Converter with explicit conversion events.

Methods

Method Description
convert Converts the source document and saves the entire converted document.
convert Converts the source document and saves the whole converted document.
convert Converts the source document and saves the whole converted document.
convert Converts the source document and saves the whole converted document.
convert Converts the source document and saves the whole converted document.
convert Converts the source document and saves the converted document page by page.
convert Converts the source document and saves the converted document page by page.
convert Converts the source document and saves the converted document page by page.
convert Converts the source document and saves the converted document page by page.
convert_convert_options
convert_file
convert_func
convert_string
dispose Releases resources.
get_all_possible_conversions Gets all supported conversions.
get_document_info Retrieves source document info, including page count and other properties specific to the file type.
get_possible_conversions Retrieves possible conversions for the source document.
get_possible_conversions_by_extension Gets supported conversions for provided document extension.
is_document_password_protected Checks whether the source document is password protected.

Example

from groupdocs.conversion import Converter
from groupdocs.conversion.options.convert import PdfConvertOptions

with Converter("sample.docx") as converter:
    converter.convert("output.pdf", PdfConvertOptions())

Guides

Task guides that use Converter:

See Also