process method

process(, template_file, result_file)

Converts template file to images.


@staticmethod
def process(template_file, result_file):
    ...
ParameterTypeDescription
template_fileSystem.StringThe template file to be converted to images.
result_fileSystem.StringThe resultant file(name pattern) for generated images.

Remarks

The output files will be build from the specified result file by appending sequence number of the sheet and split part. For example, if the specified output file is Image.png, then the generated image files will be Image_0_0.png, Image_0_1.png, …, Image_1_0.png, …

process(, load_options, save_options)

Converts template file to images


@staticmethod
def process(load_options, save_options):
    ...
ParameterTypeDescription
load_optionsaspose.cells.lowcode.LowCodeLoadOptionsOptions for input and loading
save_optionsaspose.cells.lowcode.LowCodeSaveOptionsOptions for output and saving

Remarks

When converting to image of format that supports multiple pages(such as tiff), the specified LowCodeSaveOptions.output_file or LowCodeSaveOptions.output_stream will be used directly for the resultant image.

For other types of image, if the save options has specified Stream as output, then all resultant images will be saved to the same Stream. Otherwise, the output files will be build from the specified output file of the save options by appending sequence number of the sheet and split part. For example, if the specified output file is Image.png, then the generated image files will be Image_0_0.png, Image_0_1.png, …, Image_1_0.png, …

process(, load_options, save_options, provider)

Converts template file to images


@staticmethod
def process(load_options, save_options, provider):
    ...
ParameterTypeDescription
load_optionsaspose.cells.lowcode.LowCodeLoadOptionsOptions for input and loading
save_optionsaspose.cells.lowcode.LowCodeSaveOptionsOptions for saving.
Its output(LowCodeSaveOptions.output_file or LowCodeSaveOptions.output_stream)
takes no effect because all outputs will be specified by the “provider” parameter
providerAspose.Cells.LowCode.AbstractLowCodeSaveOptionsProviderProvider of save options for saving the generated images

See Also