replace_to_images_regex method

replace_to_images_regex(input_file_name, save_options, pattern, replacement, options)

Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images.

def replace_to_images_regex(self, input_file_name: str, save_options: aspose.words.saving.ImageSaveOptions, pattern: str, replacement: str, options: aspose.words.replacing.FindReplaceOptions):
    ...
ParameterTypeDescription
input_file_namestrThe input file name.
save_optionsImageSaveOptionsThe save options.
patternstrA regular expression pattern used to find matches.
replacementstrA string to replace all occurrences of pattern.
optionsFindReplaceOptionsFindReplaceOptions object to specify additional options.

replace_to_images_regex(input_stream, save_options, pattern, replacement, options)

Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images.

def replace_to_images_regex(self, input_stream: io.BytesIO, save_options: aspose.words.saving.ImageSaveOptions, pattern: str, replacement: str, options: aspose.words.replacing.FindReplaceOptions):
    ...
ParameterTypeDescription
input_streamio.BytesIOThe input file stream.
save_optionsImageSaveOptionsThe save options.
patternstrA regular expression pattern used to find matches.
replacementstrA string to replace all occurrences of pattern.
optionsFindReplaceOptionsFindReplaceOptions object to specify additional options.

See Also