php-extended/php-pdf2json-object
最新稳定版本:9.0.6
Composer 安装命令:
composer require php-extended/php-pdf2json-object
包简介
An implementation of the php-extended/php-pdf2json-interface library
README 文档
README
An implementation of the php-extended/php-pdf2json-interface library.
This library was made to get text positions accurate while there are positional calculus errors or no implementations from the smalot/pdfparser library.
Installation
The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.
- Download
composer.pharfrom their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-pdf2json-object ^9
/!\
This library REQUIRES the installation of the pdf2json library as native library. More instructions on their github page.
This library does not support OSes others than linux for the moment.
Basic Usage
This library can be used the following way :
use PhpExtended\Pdf2json\Pdf2jsonExtractor;
$extractor = new Pdf2jsonExtractor();
$document = $extractor->extractFromPdfFile('<path/to/pdf/document.pdf>');
foreach($document->text as $text)
{
/** @var $text \PhpExtended\Pdf2json\Pdf2jsonText */
}
License
MIT (See license file).
统计信息
- 总下载量: 1.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-11