From dea065ab72ed8b551747fce81dae6ca96cae94c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=91=9E=E5=8D=8E?= <46486133+ChenRuihua@users.noreply.github.com> Date: Wed, 3 Aug 2022 17:59:14 +0800 Subject: [PATCH] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正readme错误 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a4dd8de..bd003b0 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ This package provides a class to extract text from a pdf. use Escarter\PopplerPhp\PdfToText; use Escarter\PopplerPhp\getOutput; -echo PdfToText::getText('document.pdf'); //returns the text from the pdf -echo PdfToText::getOutput('document.pdf','destination_path/page_%d.pdf'); //returns null +echo PdfToText::getText('document.pdf','/opt/homebrew/bin/pdftotext'); //returns the text from the pdf +echo PdfSeparate::getOutput('document.pdf','/opt/homebrew/bin/pdfseparate','destination_path/page_%d.pdf'); //returns null ``` @@ -48,7 +48,7 @@ yum install poppler-utils You can install the package via composer: ```bash -composer require escarter/proppler-php +composer require escarter/poppler-wrapper-php ``` ## Usage Extracting text @@ -154,4 +154,4 @@ If you discover any security related issues, please email mbutuhescarter@gmail.c ## License -The MIT License (MIT). Please see [License File](LICENSE.md) for more information. \ No newline at end of file +The MIT License (MIT). Please see [License File](LICENSE.md) for more information.