to_image method

to_image

Render whole workbook as Tiff Image to stream.

def to_image(self, stream):
    ...
ParameterTypeDescription
streamio.RawIOBasethe stream of the output image

to_image

Render whole workbook as Tiff Image to a file.

def to_image(self, filename):
    ...
ParameterTypeDescription
filenamestrthe filename of the output image

to_image

Render certain page to a file.

def to_image(self, page_index, file_name):
    ...
ParameterTypeDescription
page_indexintindicate which page is to be converted
file_namestrfilename of the output image

to_image

Render certain page to a stream.

def to_image(self, page_index, stream):
    ...
ParameterTypeDescription
page_indexintindicate which page is to be converted
streamio.RawIOBasethe stream of the output image

See Also