
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
pypptx-with-oxml
Advanced tools
A significant experimental feature has been added to enable the parsing of MathML (specifically <a14:m> elements containing either <m:oMathPara> for block equations or <m:oMath> for inline equations) embedded within PowerPoint files. This MathML content can then be converted into LaTeX strings.
This functionality allows for the extraction of mathematical equations from slides. When a presentation is parsed, these math elements are represented as special run objects. The LaTeX representation of the math equation can be accessed via the .text property of such a run (e.g., a math run might return a string like '$x^2 + y^2 = z^2$').
Unrelated to the MathML parsing, this fork also fixes the parsing of tiff images.
Important note: Though the fork is right now passing all tests (except txt-font-props.feature:Get Font.underline, tested only on Python 3.10 and 3.11), this fork is still experimental and it is not yet ready for production use! Also, no tests or documentation have been added for the new features. Please report any issues in the issue tracker for this fork!
This was developed while I was working on pptx2marp, a tool that converts PowerPoint presentations to Marp markdown, itself a fork of ssine/pptx2md, and I needed to parse the MathML in the presentations, as well as fix the parsing of tiff images.
python-pptx is a Python library for creating, reading, and updating PowerPoint (.pptx) files.
A typical use would be generating a PowerPoint presentation from dynamic content such as a database query, analytics output, or a JSON payload, perhaps in response to an HTTP request and downloading the generated PPTX file in response. It runs on any Python capable platform, including macOS and Linux, and does not require the PowerPoint application to be installed or licensed.
It can also be used to analyze PowerPoint files from a corpus, perhaps to extract search indexing text, images, and now, mathematical equations.
Furthermore, it can automate the production of slides that would be tedious to create by hand.
More information is available in the python-pptx documentation.
Browse examples with screenshots to get a quick idea of what you can do with python-pptx.
FAQs
Create, read, and update PowerPoint 2007+ (.pptx) files.
We found that pypptx-with-oxml demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.