PHP Classes

PDF Meta Reader: Parse and extract keywords from PDF using pdfinfo

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 314 This week: 1All time: 7,267 This week: 66Up
Version License PHP version Categories
pdf-meta-reader 1.0.0MIT/X Consortium ...5PHP 5, Files and Folders
Collaborate with this project 


pdf-metadata-reader -


This class can parse and extract keywords from PDF using pdfinfo.

It takes the path of a PDF file and executes the pdfinfo program to retrieve meta data from the PDF document.

The class parses the program output and extracts the PDF document keywords.

Innovation Award
PHP Programming Innovation award nominee
May 2016
Number 7

Prize: One subscription to the PDF edition of the PHP Architect magazine
Many PDF documents contain metadata that is not displayed on the document but can be used to classify and index the PDF files.

This class can extract keywords metadata from a PDF document using the pdfinfo program.

Manuel Lemos
Picture of Arnel Labarda
  Performance   Level  
Name: Arnel Labarda <contact>
Classes: 6 packages by
Country: Philippines Philippines
Age: 37
All time rank: 247822 in Philippines Philippines
Week rank: 80 Up1 in Philippines Philippines Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x




require_once '../PDFMetadataReader.php';

$pdf = 'example.pdf';

$metadata = PDFMetadataReader::factory($pdf);

// return all metadata;

// specific info
echo 'Title:' . $metadata->Title;


  Files folder image Files  
File Role Description
Files folder imageexample (1 file)
Plain text file PDFMetadataReader.php Class Class source
Accessible without login Plain text file README Data Auxiliary data

  Files folder image Files  /  example  
File Role Description
  Accessible without login Plain text file example.php Example Example script

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:7,267
This week:66Up