get_possible_conversions method

get_possible_conversions

Retrieves possible conversions for the source document.

The returned object provides access to all conversion options, including primary and secondary formats, and includes metadata about the source file.

def get_possible_conversions(self):
    ...

Returns: GroupDocs.Conversion.Fluent.PossibleConversions: An object containing the source description and collections of conversion formats.

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