Python-pptx

Latest version: v1.0.2

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

Scan your dependencies

Page 6 of 8

0.5.5

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

- feature 51 - add Python 3 support

0.5.4

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

- feature 43 - image native size in shapes.add_picture() is now calculated
based on DPI attribute in image file, if present, defaulting to 72 dpi.
- feature 113 - Add Paragraph.space_before, Paragraph.space_after, and
Paragraph.line_spacing

0.5.3

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

- add experimental feature TextFrame.fit_text()

0.5.2

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

- fix 127 - Shape.text_frame fails on shape having no txBody

0.5.1

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

- feature 120 - add Shape.rotation
- feature 97 - add Font.underline
- issue 117 - add BMP image support
- issue 95 - add BaseShape.name setter
- issue 107 - all .text properties should return unicode, not str
- feature 106 - add .text getters to Shape, TextFrame, and Paragraph

- Rename Shape.textframe to Shape.text_frame.
**Shape.textframe property (by that name) is deprecated.**

0.5.0

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

- Add support for creating and manipulating bar, column, line, and pie charts
- Major refactoring of XML layer (oxml)
- Rationalized graphical object shape access
**Note backward incompatibilities below**

**BACKWARD INCOMPATIBILITIES:**

A table is no longer treated as a shape. Rather it is a graphical object
contained in a GraphicFrame shape, as are Chart and SmartArt objects.

Example::

table = shapes.add_table(...)

becomes

graphic_frame = shapes.add_table(...)
table = graphic_frame.table

or

table = shapes.add_table(...).table

As the enclosing shape, the id, name, shape type, position, and size are
attributes of the enclosing GraphicFrame object.

The contents of a GraphicFrame shape can be identified using three available
properties on a shape: has_table, has_chart, and has_smart_art. The enclosed
graphical object is obtained using the properties GraphicFrame.table and
GraphicFrame.chart. SmartArt is not yet supported. Accessing one of these
properties on a GraphicFrame not containing the corresponding object raises
an exception.

Page 6 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.