承接 nizarp/pdf-vision 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nizarp/pdf-vision

Composer 安装命令:

composer require nizarp/pdf-vision

包简介

Convert PDF file to text using Google Vision API

README 文档

README

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:

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

Read about Google Cloud Vision API

How to get service key

Google Cloud Vision API Document

Requirements

You should have Imagick and Ghostscript installed.

Install

The package can be installed via composer:

$ composer require nizarp/pdf-vision

Usage

Converting a pdf to text is easy.

$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.

Credits

License

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

统计信息

  • 总下载量: 62
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固