2017 © Pedro Peláez
 

library pdftotext

Extract text from PDF

image

ottosmops/pdftotext

Extract text from PDF

  • Saturday, April 21, 2018
  • by ottosmops
  • Repository
  • 3 Watchers
  • 2 Stars
  • 4,367 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 48 % Grown

The README.md

Extract text from a PDF with pdftotext

Software License Latest Stable Version Packagist Downloads, (*1)

This package provides a class to extract text from a pdf., (*2)

For PHP 5.6 use Version 1.0.3, (*3)

  \Ottosmops\Pdftotext\Extract::getText('/path/to/file.pdf') //returns the text from the pdf

Requirements

The Package uses pdftotext. Make sure that this is installed: which pdftotext, (*4)

For Installation see: poppler-utils, (*5)

If the installed binary is not found ("The command "which pdftotext" failed.") you can pass the full path to the _constructor (see below) or use putenv('PATH=$PATH:/usr/local/bin/:/usr/bin') (with the dir where pdftotext lives) before you call the class Extract., (*6)

Installation

composer require ottosmops/pdftotext

Usage

Extracting text from a pdf:, (*7)

$text = (new Extract())
    ->pdf('file.pdf')
    ->text();

You can set the binary and you can specify options:, (*8)

$text = (new Extract('/path/to/pdftotext'))
    ->pdf('path/to/file.pdf')
    ->options('-layout')
    ->text();

Default options are: -eol unix -enc UTF-8 -raw, (*9)

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

21/04 2018

dev-master

9999999-dev https://github.com/ottosmops/pdftotext

Extract text from PDF

  Sources   Download

MIT

The Requires

 

The Development Requires

by ak

laravel anton ottosmops pdftotext

21/04 2018

v1.0.2

1.0.2.0 https://github.com/ottosmops/pdftotext

Extract text from PDF

  Sources   Download

MIT

The Requires

 

The Development Requires

by ak

laravel anton ottosmops pdftotext

20/04 2018

v1.0.1

1.0.1.0 https://github.com/ottosmops/pdftotext

Extract text from PDF

  Sources   Download

MIT

The Requires

 

The Development Requires

by ak

laravel anton ottosmops pdftotext

09/11 2016

v1.0.0

1.0.0.0 https://github.com/ottosmops/pdftotext

Extract text from PDF

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel anton ottosmops pdftotext