Python-docx

Latest version: v1.1.2

Safety actively analyzes 681881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

0.8.4

Not secure
++++++++++++++++++

- Fix 151: tests won't run on PyPI distribution
- Fix 124: default to inches on no TIFF resolution unit

0.8.3

Not secure
++++++++++++++++++

- Add 121, 135, 139: feature: Font.color

0.8.2

Not secure
++++++++++++++++++

- Fix 94: picture prints at wrong size when scaled
- Extract `docx.document.Document` object from `DocumentPart`

Refactor `docx.Document` from an object into a factory function for new
`docx.document.Document object`. Extract methods from prior `docx.Document`
and `docx.parts.document.DocumentPart` to form the new API class and retire
`docx.Document` class.

- Migrate `Document.numbering_part` to `DocumentPart.numbering_part`. The
`numbering_part` property is not part of the published API and is an
interim internal feature to be replaced in a future release, perhaps with
something like `Document.numbering_definitions`. In the meantime, it can
now be accessed using ``Document.part.numbering_part``.

0.8.1

Not secure
++++++++++++++++++

- Fix 140: Warning triggered on Document.add_heading/table()

0.8.0

Not secure
++++++++++++++++++

- Add styles. Provides general capability to access and manipulate paragraph,
character, and table styles.

- Add ParagraphFormat object, accessible on Paragraph.paragraph_format, and
providing the following paragraph formatting properties:

+ paragraph alignment (justfification)
+ space before and after paragraph
+ line spacing
+ indentation
+ keep together, keep with next, page break before, and widow control

- Add Font object, accessible on Run.font, providing character-level
formatting including:

+ typeface (e.g. 'Arial')
+ point size
+ underline
+ italic
+ bold
+ superscript and subscript

The following issues were retired:

- Add feature 56: superscript/subscript
- Add feature 67: lookup style by UI name
- Add feature 98: Paragraph indentation
- Add feature 120: Document.styles

**Backward incompatibilities**

Paragraph.style now returns a Style object. Previously it returned the style
name as a string. The name can now be retrieved using the Style.name
property, for example, `paragraph.style.name`.

0.7.6

Not secure
++++++++++++++++++

- Add feature 69: Table.alignment
- Add feature 29: Document.core_properties

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.