2017-25 © Pedro Peláez
 

library pdfinfo

PHP Wrapper for pdfinfo command

image

jfuentestgn/pdfinfo

PHP Wrapper for pdfinfo command

  • Tuesday, April 10, 2018
  • by jfuentestgn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PDF Info

Simple class to retrieve basic information from PDF file, (*1)

This class uses spatie/pdf-to-text and extends it to read metadata from a PDF file. It acts as a wrapper for pdfinfo command., (*2)

Requirements

  • PHP >= 5.6.4
  • pdfinfo

Be sure to check if pdfinfo is installed in your system before using this package, (*3)

Installation

You should use the pdfinfo class with composer, from command line:, (*4)

$ composer require jfuentestgn/pdfinfo

or declaring it in your project's composer.json file:, (*5)

{
    "require": {
        "jfuentestgn/pdfinfo": "dev-master"
    }
}

Configuration

No config needed, (*6)

Usage

You can use the Pdf class in a similar way thay you would do with spatie's one:, (*7)

use JFuentesTgn\pdfinfo\Pdf;

$info = (new Pdf())->setPdf('dummy.pdf')->info();
print_r($info);

or:, (*8)

$info = \JFuentesTgn\pdfinfo\Pdf::getInfo('dummy.pdf');

Credits

This package is maintained by Juan Fuentes. It's based on spatie/pdftotext., (*9)

License

This package is licensed under The MIT License (MIT)., (*10)

The Versions

10/04 2018

dev-master

9999999-dev

PHP Wrapper for pdfinfo command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Juan Fuentes