Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Jun 6, 2024
1 parent cf32a56 commit b2eb864
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,23 @@ use Pop\Pdf\Pdf;
$doc = Pdf::importFromImages($arrayOfImages);
```

### Extract Text

If you just want to extract the text from a PDF that contains text (not a PDF comprised of images with text in them),
you can do so like this:

```php
use Pop\Pdf\Pdf;

$text = Pdf::extractTextFromFile('path/to/document.pdf');
```

```php
use Pop\Pdf\Pdf;

$text = Pdf::extractTextFromData($pdfStream);
```

[Top](#pop-pdf)

Documents
Expand Down

0 comments on commit b2eb864

Please sign in to comment.