Skip to content

Commit

Permalink
remove resources
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jul 2, 2015
1 parent 6494524 commit ae288f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $ composer require spatie/pdf-to-image

## Usage

Converting a pdf to an image is easy!
Converting a pdf to an image is easy.

```php
$pdf = new Spatie\PdfToImage\Pdf($pathToPdf);
Expand All @@ -37,19 +37,19 @@ Otherwise the output will be a jpg.
##Other methods
You can get the total number of pages in the pdf:
```php
$pdf->getNumberOfPages() //returns an int
$pdf->getNumberOfPages(); //returns an int
```

By default the first page of the pdf will be rendered. If you want to render another page you can do so:
```php
$pdf->setPage(2)
->saveImage($pathToWhereImageShouldBeStored) //saves the second page
->saveImage($pathToWhereImageShouldBeStored); //saves the second page
```

You can override the output format:
```php
$pdf->setOutputFormat('png')
->saveImage($pathToWhereImageShouldBeStored) //the output wil be a png, no matter what
->saveImage($pathToWhereImageShouldBeStored); //the output wil be a png, no matter what
```

## Change log
Expand Down
Empty file removed resources/config/.gitkeep
Empty file.
Empty file removed resources/views/.gitkeep
Empty file.

0 comments on commit ae288f7

Please sign in to comment.