Skip to main content

A package to extract text from PDF

Project description


pip install pdf2textlib

PyPI Status Downloads

Simple Multilingual PDF text extraction, Also extracts from images

import pdf2textlib

# parameter 1 : Path to the PDF file
# parameter 2 : string of language codes separated by '+' sign

OS Dependencies

Debian, Ubuntu, and friends

sudo apt-get install build-essential libpoppler-cpp-dev pkg-config python-dev

Fedora, Red Hat, and friends

sudo yum install gcc-c++ pkgconfig poppler-cpp-devel python-devel redhat-rpm-config


brew install pkg-config poppler

Conda users may also need libgcc:

conda install -c anaconda libgcc


Currently tested only when using conda:

  • Install the Microsoft Visual C++ Build Tools
  • Install poppler through conda:
    conda install -c conda-forge poppler


pip install pdf2textlib

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pdf2textlib, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size pdf2textlib-1.0.4-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pdf2textlib-1.0.4.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page