Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
patinthehat committed May 28, 2024
1 parent c942bb3 commit d47f799
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,20 @@ $pdf
->saveImage($pathToWhereImageShouldBeStored);
```

Set the output image width:

```php
$pdf->size(400) // set the width to 400px; height is calculated automatically
->saveImage($pathToWhereImageShouldBeStored);
```

Set the output image width and height:

```php
$pdf->size(400, 300) // set the width to 400px and the height to 300px
->saveImage($pathToWhereImageShouldBeStored);
```

Save all pages to images:

```php
Expand Down

0 comments on commit d47f799

Please sign in to comment.