PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 315 All time: 7,262 This week: 79Up
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: 247922 in Philippines Philippines
Week rank: 192 Up3 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 (3)  
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 (3)  /  example  
File Role Description
  Accessible without login Plain text file example.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:315
This week:0
All time:7,262
This week:79Up