$npx skillfedfor your agent

pdftotext

Simple PDF text extraction

With conditionsPyPI Text ProcessingReleased Jun 2026169.7K downloads / moMITSource build

Decision gist · record as of 2026-08-14

sdist only — pdftotext-4.0.0.tar.gz · builds from source
v4.0.0 · released 2026-06-26

Yes, if you can meet the system dependency requirement. The package is actively maintained, has no known vulnerabilities, uses a permissive license, and solves a common problem with a clean API. The high install friction (C++ compilation) is a real barrier on some systems but not insurmountable—install the platform-specific Poppler headers first, then pip install. Worth the effort for production PDF text extraction.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires libpoppler-cpp development headers and C++ compiler installed on your system before pip install will succeed.
  • High install friction: requires system-level compilation and platform-specific C++ libraries (libpoppler-cpp-dev on Debian/Ubuntu, poppler-cpp-devel on Fedora/RHEL, or poppler via Homebrew on macOS).
  • Package is actively maintained as of 49 days ago.

License · maintenance · safety

MIT (permissive) — MIT license is permissive and imposes no restrictions on commercial or private use, modification, or redistribution.

last release 2026-06-26 (49 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 169,686 downloads/mo, #10,409 on PyPI

Verify before relying

pip install pdftotext

import pdftotext

with open("document.pdf", "rb") as f:
    pdf = pdftotext.PDF(f)
    for page in pdf:
        print(page)
  • Whether password-protected PDF support works reliably across all PDF encryption standards.
  • Performance characteristics when processing large PDFs or batch operations.
  • Accuracy of text extraction from PDFs with complex layouts, images, or non-Latin scripts.
Same gist for agents: .md · .json

What it is and what it does

pdftotext is a Python wrapper around the Poppler C++ library that extracts text content from PDF files. It provides a simple interface: load a PDF file (optionally with a password), then iterate over pages or join all text into a single string. The package handles the low-level Poppler integration so you don't have to.

The main trade-off is installation complexity. Because it wraps a C++ library, you must have Poppler development headers and a C++ compiler on your system before installing via pip. Once those are in place, the API is straightforward—just open a file, create a PDF object, and read pages as strings.

Use it for

  • Index PDF documents for full-text search by extracting all text and storing it in a search engine.
  • Batch convert PDF content to plain text for processing or analysis pipelines.
  • Read text from password-protected PDFs programmatically in automated workflows.
  • Extract page-by-page text for document summarization or NLP tasks.
  • Build a document ingestion layer that accepts PDFs and outputs structured text data.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you can meet the system dependency requirement.

The package is actively maintained, has no known vulnerabilities, uses a permissive license, and solves a common problem with a clean API. The high install friction (C++ compilation) is a real barrier on some systems but not insurmountable—install the platform-specific Poppler headers first, then pip install. Worth the effort for production PDF text extraction.

Install

pdftotext on PyPI

Before you install

High install friction: requires system-level compilation and platform-specific C++ libraries (libpoppler-cpp-dev on Debian/Ubuntu, poppler-cpp-devel on Fedora/RHEL, or poppler via Homebrew on macOS). Package is actively maintained as of 49 days ago.

Requires libpoppler-cpp development headers and C++ compiler installed on your system before pip install will succeed.

License in practice

MIT license is permissive and imposes no restrictions on commercial or private use, modification, or redistribution.

Quickstart

pip install pdftotext

import pdftotext

with open("document.pdf", "rb") as f:
    pdf = pdftotext.PDF(f)
    for page in pdf:
        print(page)

Verify before relying

  • Whether password-protected PDF support works reliably across all PDF encryption standards.
  • Performance characteristics when processing large PDFs or batch operations.
  • Accuracy of text extraction from PDFs with complex layouts, images, or non-Latin scripts.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionHigh. Source build required
Runtime dependenciesNone
MaintenanceActively maintained 49 days since the last release
First released
Downloads169,686 / month, #10,409 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: pdftotext-4.0.0.tar.gz

Tags

Capabilities
pdf text extractionextract text from pdfpdf to text pythonread pdf contentpdf parsing librarysimple pdf readerpdf document text
Topics
pdf-extractiondocument-processing

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pdf to text python”

  • pdftotextExtracts text from PDF files, including password-protected documents,…
  • pdfminer.sixExtracts text, images, and layout information from PDF documents by…
  • pdfminerExtracts text and layout information from PDF documents, including…

Give your agent the search over MCP, or paste the wish link into any chat.

More Text Processing packages

regex Worth it
PyPI · Python Modules · released Jul 2026

A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.

Apache-2.0 AND CNRI-Pythoncompiled wheel · 3.10+
437.7Mdownloads / mo
pyparsing Worth it
PyPI · Text Processing · released Jan 2026

pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.

Install it if you need to parse text or define grammars programmatically.

MITpure Python · 3.9+
412.7Mdownloads / mo
fonttools Worth it
PyPI · Text Processing · released May 2026

fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.

Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.

permissive licensepure Python · 3.10+
235.9Mdownloads / mo
docutils With conditions
PyPI · Software Development · released May 2026

Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.

BSD-3-Clausepure Python · 3.9+
225.6Mdownloads / mo
RapidFuzz Worth it
PyPI · Text Processing · released Apr 2026

RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.

Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.

MITcompiled wheel · 3.10+
184.2Mdownloads / mo
tinycss2 Worth it
PyPI · Text Processing · released Nov 2025

tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.

Install it if your project requires CSS tokenization or syntax manipulation.

BSD-3-Clausepure Python · 3.10+
113.2Mdownloads / mo

See also textract · tika · PyPDF4 · PyPDF3 · pdfminer · pdftext · pymupdf · docling-parse · amazon-textract-caller · pdf2image