-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
21 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,25 +7,7 @@ | |
[![Quality Score][ico-code-quality]][link-code-quality] | ||
[![Total Downloads][ico-downloads]][link-downloads] | ||
|
||
**Note:** Replace ```Gustavo Karkow``` ```karkowg``` ```https://github.com/karkowg``` ```[email protected]``` ```karkowg``` ```php-mupdf``` ```Minimal PDF to image converter using MuPDF``` with their correct values in [README.md](README.md), [CHANGELOG.md](CHANGELOG.md), [CONTRIBUTING.md](CONTRIBUTING.md), [LICENSE.md](LICENSE.md) and [composer.json](composer.json) files, then delete this line. You can run `$ php prefill.php` in the command line to make all replacements at once. Delete the file prefill.php as well. | ||
|
||
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what | ||
PSRs you support to avoid any confusion with users and contributors. | ||
|
||
## Structure | ||
|
||
If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following. | ||
|
||
``` | ||
bin/ | ||
build/ | ||
docs/ | ||
config/ | ||
src/ | ||
tests/ | ||
vendor/ | ||
``` | ||
|
||
Minimal PDF to image converter using [MuPDF](https://mupdf.com/docs/mutool.html). Heavily inspired by [spatie/image-to-pdf](https://github.com/spatie/pdf-to-image). | ||
|
||
## Install | ||
|
||
|
@@ -38,8 +20,9 @@ $ composer require karkowg/php-mupdf | |
## Usage | ||
|
||
``` php | ||
$skeleton = new Karkow\MuPdf(); | ||
echo $skeleton->echoPhrase('Hello, League!'); | ||
$pdf = new Karkow\MuPdf\Pdf('path/to/pdf/file'); | ||
|
||
$pdf->saveAllPagesAsImages('./images/', 'page-'); | ||
``` | ||
|
||
## Change log | ||
|