Commit e13c495
fix: Return page width and height from document (#700)
* fix: Return page width and height from document
Some documents could have pages without MediaBox, at this case we need
to get the MediaBox from document and not from a specific page.
Signed-off-by: Vitor Mattos <vitor@php.rio>
* fix: prevent psalm error
Prevent the follow error:
```
ERROR: InvalidPassByReference - Parameter 1 of reset expects a variable (see https://psalm.dev/102)
$details = reset($pdf->getObjectsByType('Pages'))->getHeader()->getDetails();
```
Signed-off-by: Vitor Mattos <vitor@php.rio>
* Update doc/Usage.md
Co-authored-by: Konrad Abicht <hi@inspirito.de>
---------
Signed-off-by: Vitor Mattos <vitor@php.rio>
Co-authored-by: Konrad Abicht <hi@inspirito.de>1 parent fb77eab commit e13c495
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
| |||
0 commit comments