PHP Classes

PDF Text Extractor: Extract text from PDF files

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (17)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 47%Total: 15,193 This week: 1All time: 56 This week: 68Down
Version License PHP version Categories
pdf-2-text 1.1GNU General Publi...5.1PHP 5, Files and Folders


This class can be used to extract text from PDF files.

It can parse a PDF file and decode any document elements that contain document text that can be extracted.

Innovation Award
PHP Programming Innovation award nominee
May 2010
Number 2

Prize: One subscription to the PDF edition of the PHP Architect magazine
PDF is a popular document format that allows including complex graphic structures.

However, if you just want to extract the text contained in a PDF document to perform some kind of text processing, that is not a trivial task.

This class implements a pure PHP solution for extract text from PDF documents. It parses a PDF document and extracts only the text that it contains.

Manuel Lemos
Picture of joeri
Name: joeri <contact>
Classes: 1 package by
Country: The Netherlands The Netherlands
Age: ???
All time rank: 1213 in The Netherlands The Netherlands
Week rank: 93 Up1 in The Netherlands The Netherlands Up
Innovation award
Innovation award
Nominee: 1x


What is the best PHP pdf text extractor class?
Extract particular content from any PDF file using PHP

What is the best PHP read pdf file class?
Read PDF file upload than read in text in it.

What is the best PHP pdf search class?
I need to read a PDF document using PHP

  Files folder image Files  
File Role Description
Plain text file class.pdf2text.php Class class.pdf2text.php

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:56
This week:68Down
User Ratings User Comments (7)
 All time
no examples to usage
8 years ago (Seleccion del Chef Pruebas)
Depois de várias classes testadas você percebe que o maior ...
9 years ago (Nilton Freitas Junior)
Really useful class, but only simple cases are working as it ...
10 years ago (Andoitz Jordan Marmolejo)
It worked perfectly for me.
10 years ago (Imran Rasool)
I test this class based on many pdf files.
10 years ago (Yachao Lu)
Nice, but works only on some pdf documents, not all of them.
13 years ago (Issam)
A very simple, useful and efficient application.
14 years ago (Mauricio Lorca)