Welcome to paradocx documentation!¶
-
class
paradocx.Document¶ Bases:
paradocx.package.WordPackage-
paragraph(text=None, style=None)¶
-
property
paragraphs¶
-
table(data=None, style=None)¶
-
-
paradocx.paragraph(text=None, style=None, pagebreak=None)¶
-
paradocx.run(text=None, bold=False, italic=False, font=None)¶
-
paradocx.table(data=None, style=None)¶
-
class
paradocx.document.DocumentPart(*args, **kwargs)¶ Bases:
openpack.basepack.Part-
append(xml_element)¶
-
content_type: Optional[str] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml'¶
-
encoding: str¶
-
load(xml)¶
-
rel_type: Optional[str] = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument'¶
-
-
class
paradocx.styles.Style¶ Bases:
lxml.etree.ElementBase-
property
based_on_id¶
-
property
id¶
-
property
name¶
-
property
next_id¶
-
property
-
class
paradocx.styles.StylesPart(package, name=None, *args, **kwargs)¶ Bases:
openpack.basepack.DefaultNamed,openpack.basepack.Part-
content_type: Optional[str] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml'¶
-
property
data¶
-
default_name= '/word/styles.xml'¶
-
encoding: str¶
-
get_style_by_id(id)¶
-
get_styles()¶
-
load(xml)¶
-
rel_type: Optional[str] = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles'¶
-
replace_style_id(orig, repl)¶
-
replace_styles(other)¶ Replace all of the styles in self with all of the styles in the other StylesPart, but reuse style IDs from the self for any styles with the same name.
-