PHP Classes
elePHPant
Icontem

How to Convert DOC to TXT using PHP DOC DOCX PDF to Text Converter: Convert DOCX, DOC, PDF to plain text

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (13)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2014-11-12 (2 years ago) RSS 2.0 feedStarStarStarStar 61%Total: 4,026 This week: 21All time: 750 This week: 28Up
Version License PHP version Categories
filetotext 1.0The PHP License5.2PHP 5, Text processing, Conversion
Description Author

This class can convert DOCX, DOC, PDF files to plain text.

It can read files in either Microsoft Word DOCX and DOC formats or PDF and parse the files to extract text they contain.

The text extracted from the documents is returned as a plain text string.

Recommendations

What is the best PHP pdf to text class?
pdf to text format in php

What is the best PHP count characters class?
Get number of characters in a uploaded doc, txt, odt, pdf etc

Extract PDF to text and XML
I need to parse a PDF file and convert whole text into XML

Innovation Award
PHP Programming Innovation award nominee
November 2014
Number 3


Prize: One copy of VS.PHP
File formats like Microsoft Word DOC or PDF are used to create documents that may contain text and other types of document elements.

Parsing and extracting the document elements from files in those formats, usually is not a trivial task. However, if you just want to extract the text in the document, simpler approaches may be used.

This class can extract text from PDF document files as well Microsoft Word files, including the older versions that use a binary file format.

Manuel Lemos
  Performance   Level  
Name: Aditya Sarkar <contact>
Classes: 2 packages by
Country: India India
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class.filetotext.php Class main class file
Plain text file index.php Example example to call

 Version Control Unique User Downloads Download Rankings  
 0%
Total:4,026
This week:21
All time:750
This week:28Up
User Ratings User Comments (3)
 All time
Utility:87%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:-
Examples:90%StarStarStarStarStar
Tests:-
Videos:-
Overall:61%StarStarStarStar
Rank:1085
 
Does not work reliably with PDF.
1 year ago (goodbee)
32%StarStar
Very interesting class.
2 years ago (Everton da Rosa)
65%StarStarStarStar
on peut simplifier juste ceci : return $this->{"read_$file_ex...
2 years ago (Yves Marie HAMAYON)
70%StarStarStarStar