2017 © Pedro Peláez
 

library pdf-vision

Convert PDF file to text using Google Vision API

image

nizarp/pdf-vision

Convert PDF file to text using Google Vision API

  • Wednesday, February 22, 2017
  • by nizarp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 9 % Grown

The README.md

Convert a pdf file to text (OCR)

This package provides an easy to work with class to convert pdf's to text. It internally uses Google Cloud Vision API. You need to create an API key and add it to your project's .env file as follows:, (*1)

GOOGLE_VISION_PROJECTID=your-project-id
GOOGLE_APPLICATION_CREDENTIALS=/Path/To/Your/KeyFile.json

Read about Google Cloud Vision API, (*2)

How to get service key

Google Cloud Vision API Document, (*3)

Requirements

You should have Imagick and Ghostscript installed., (*4)

Install

The package can be installed via composer: ``` bash $ composer require nizarp/pdf-vision, (*5)


## Usage Converting a pdf to text is easy. ```php $pdf = new Pdf($pathToPdf); $pdf->setEnvPath('/path/to/env/.env'); echo $pdf->convertToText();

Security

If you discover any security related issues, please email nizarp@gmail.com instead of using the issue tracker., (*6)

Credits

License

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

The Versions

22/02 2017

dev-master

9999999-dev

Convert PDF file to text using Google Vision API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mohamed Nisar

text pdf convert nizarp pdf-vision google-cloud-vision

22/02 2017

v1.1.1

1.1.1.0

Convert PDF file to text using Google Vision API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mohamed Nisar

text pdf convert nizarp pdf-vision google-cloud-vision

21/02 2017

v1.1.0

1.1.0.0

Convert PDF file to text using Google Vision API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mohamed Nisar

text pdf convert nizarp pdf-vision google-cloud-vision

09/02 2017

v1.0.0

1.0.0.0

Convert PDF file to text using Google Vision API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mohamed Nisar

text pdf convert nizarp pdf-vision google-cloud-vision