get_possible_conversions method

get_possible_conversions

Retrieves possible conversions for the source document.

def get_possible_conversions(self):
    ...

Returns: A GroupDocs.Conversion.Fluent.PossibleConversions object containing the source description and a collection of conversion options.

Example

from groupdocs.conversion import Converter

with Converter("report.xlsx") as converter:
    conversions = converter.get_possible_conversions()
    primary = [c.format for c in conversions.all if c.is_primary]
    print(f"Primary targets for {conversions.source.description}: {primary}")

See Also