-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ChenRuihua/patch-2
Update README.md
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] | |
|
||
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information. | ||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |