convert_to_images method

convert_to_images(input_file, output_file)

Convert the input file pages to images.

def convert_to_images(self, input_file: str, output_file: str):
    ...
ParameterTypeDescription
input_filestrThe input file name.
output_filestrThe output file name used to generate file name for page images using rule “outputFile_pageIndex.extension”

convert_to_images(input_file, output_file, save_format)

Convert the input file pages to images.

def convert_to_images(self, input_file: str, output_file: str, save_format: aspose.words.SaveFormat):
    ...
ParameterTypeDescription
input_filestrThe input file name.
output_filestrThe output file name used to generate file name for page images using rule “outputFile_pageIndex.extension”
save_formatSaveFormatSave format. Only image save formats are allowed.

convert_to_images(input_file, output_file, save_options)

Convert the input file pages to images.

def convert_to_images(self, input_file: str, output_file: str, save_options: aspose.words.saving.ImageSaveOptions):
    ...
ParameterTypeDescription
input_filestrThe input file name.
output_filestrThe output file name used to generate file name for page images using rule “outputFile_pageIndex.extension”
save_optionsImageSaveOptionsImage save options.

convert_to_images(input_file, save_format)

Convert the input file pages to images.

def convert_to_images(self, input_file: str, save_format: aspose.words.SaveFormat):
    ...
ParameterTypeDescription
input_filestrThe input file name.
save_formatSaveFormatSave format. Only image save formats are allowed.

Returns

Returns array of image streams. The streams should be disposed by the enduser.

convert_to_images(input_file, save_options)

Convert the input file pages to images.

def convert_to_images(self, input_file: str, save_options: aspose.words.saving.ImageSaveOptions):
    ...
ParameterTypeDescription
input_filestrThe input file name.
save_optionsImageSaveOptionsImage save options.

Returns

Returns array of image streams. The streams should be disposed by the enduser.

convert_to_images(input_stream, save_format)

Convert the input stream pages to images.

def convert_to_images(self, input_stream: io.BytesIO, save_format: aspose.words.SaveFormat):
    ...
ParameterTypeDescription
input_streamio.BytesIOThe input stream.
save_formatSaveFormatSave format. Only image save formats are allowed.

Returns

Returns array of image streams. The streams should be disposed by the enduser.

convert_to_images(input_stream, save_options)

Convert the input stream pages to images.

def convert_to_images(self, input_stream: io.BytesIO, save_options: aspose.words.saving.ImageSaveOptions):
    ...
ParameterTypeDescription
input_streamio.BytesIOThe input stream.
save_optionsImageSaveOptionsImage save options.

Returns

Returns array of image streams. The streams should be disposed by the enduser.

convert_to_images(doc, save_format)

Convert the document pages to images.

def convert_to_images(self, doc: aspose.words.Document, save_format: aspose.words.SaveFormat):
    ...
ParameterTypeDescription
docDocumentThe input document.
save_formatSaveFormatSave format. Only image save formats are allowed.

Returns

Returns array of image streams. The streams should be disposed by the enduser.

convert_to_images(doc, save_options)

Convert the document pages to images.

def convert_to_images(self, doc: aspose.words.Document, save_options: aspose.words.saving.ImageSaveOptions):
    ...
ParameterTypeDescription
docDocumentThe input document.
save_optionsImageSaveOptionsImage save options.

Returns

Returns array of image streams. The streams should be disposed by the enduser.

See Also