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: 311 All time: 7,296 This week: 86Up
Version License PHP version Categories
pdf-meta-reader 1.0.0MIT/X Consortium ...5PHP 5, Files and Folders
Collaborate with this project 

Author

pdf-metadata-reader - github.com

Description

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: 248322 in Philippines Philippines
Week rank: 312 Up2 in Philippines Philippines Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

Recommendations

Example

<?php

require_once '../PDFMetadataReader.php';

$pdf = 'example.pdf';

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

// return all metadata;
print_r($metadata->info());

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



Details


  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  
 100%
Total:311
This week:0
All time:7,296
This week:86Up