convert method

convert(input_file, output_file)

Convert the given input document into the output document using specified input output file names and its extensions.

def convert(self, input_file: str, output_file: str):
    ...
ParameterTypeDescription
input_filestrThe input file name.
output_filestrThe output file name.

convert(input_file, output_file, save_format)

Convert the given input document into the output document using specified input output file names and the final document format.

def convert(self, input_file: str, output_file: str, save_format: aspose.words.SaveFormat):
    ...
ParameterTypeDescription
input_filestrThe input file name.
output_filestrThe output file name.
save_formatSaveFormatThe save format.

convert(input_file, output_file, save_options)

Convert the given input document into the output document using specified input output file names and save options.

def convert(self, input_file: str, output_file: str, save_options: aspose.words.saving.SaveOptions):
    ...
ParameterTypeDescription
input_filestrThe input file name.
output_filestrThe output file name.
save_optionsSaveOptionsThe save options.

convert(input_stream, output_stream, save_format)

Convert the given input document into a single output document using specified input and output streams.

def convert(self, input_stream: io.BytesIO, output_stream: io.BytesIO, save_format: aspose.words.SaveFormat):
    ...
ParameterTypeDescription
input_streamio.BytesIOThe input stream.
output_streamio.BytesIOThe output stream.
save_formatSaveFormatThe save format.

convert(input_stream, output_stream, save_options)

Convert the given input document into a single output document using specified input and output streams.

def convert(self, input_stream: io.BytesIO, output_stream: io.BytesIO, save_options: aspose.words.saving.SaveOptions):
    ...
ParameterTypeDescription
input_streamio.BytesIOThe input streams.
output_streamio.BytesIOThe output stream.
save_optionsSaveOptionsThe save options.

See Also