Skip to main content

ppt2txt

A pure python based utility to extract text from PPT files.

The code is based on the official documentation for MS-PPT files available at https://msopenspecs.azureedge.net/files/MS-PPT/%5bMS-PPT%5d.pdf.

How to install?

pip install ppt2txt

How to run?

  • From command line:
ppt2txt file.ppt -o output_dir
  • From python:
import ppt2txt

# extract content
parsed_ppt_dict = ppt2txt.process("file.ppt") 

Output

parsed_ppt_dict is a dictionary with the following structure:

{
    "filename": "file.ppt",
    "slides": 4,
    "content": {
        "0": "Text from the first record",
        "1": "Text from the second record"
    }
}

where:

  • filename is the name of the input file
  • slides is the number of slides
  • content is a dictionary containing an element for each record of type text found in the document

Metadata

Release files for ppt2txt 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ppt2txt 0.1.0
File Size Uploaded Provenance
ppt2txt-0.1.0.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ppt2txt 0.1.0
File Interpreter ABI Platform
ppt2txt-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / ppt2txt-0.1.0.tar.gz

Download URL ppt2txt-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bc9401f1859475a09657a453577063f396d0157b1d379d755ac6e49fdafd1e8a
BLAKE2b-256 checksum
How to use checksums
6dc25a4b032934eb4c5518f269f9b18ef6453e0fe877c8642edda541013089ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / ppt2txt-0.1.0-py3-none-any.whl

Download URL ppt2txt-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c5535d9a3af1c048814bffbefef62677dfc5c9e051a1e690db2b011448c9198
BLAKE2b-256 checksum
How to use checksums
713c9d8e82b6ea753f35c543a615d0dd27521688669d7ea5a7ce6850a25070e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for ppt2txt 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page