odt package¶
Subpackages¶
Submodules¶
odt.odtredactor module¶
- class odt.odtredactor.ODTRedactor(path_input: str, path_output: str, encoding: str = 'UTF-8', datafile: str = 'content.xml')[source]¶
Bases:
object
Class for working with ODT documents
- add_comment_by_text(text: str, text_annotation: str, author: str = 'Lisa') None [source]¶
- Parameters:
text – The text by which the paragraph to be commented on will be found
text_annotation – Annotation contents
author – Name of the author of the annotation
- delete_comment_by_id(name_id: int | str) None [source]¶
- Parameters:
name_id – name_id of the annotation to be deleted
- edit_style_by_text(text: str, font_name: str, font_size: int, color, style_name=None, family: str = 'text') None [source]¶
- Parameters:
text – the text for which the paragraph will be searched
font_name – new name of the font
font_size – new font size
color – new paragraph color
name – The name of the new style.
In case the argument is not passed, it is generated automatically :param family: The family of the style from which the main features of the style are inherited