3
3
namespace Spatie \PdfToImage ;
4
4
5
5
use Imagick ;
6
+ use ImagickPixel ;
6
7
use Spatie \PdfToImage \DTOs \PageSize ;
7
8
use Spatie \PdfToImage \DTOs \PdfPage ;
8
9
use Spatie \PdfToImage \Enums \LayerMethod ;
12
13
use Spatie \PdfToImage \Exceptions \InvalidSize ;
13
14
use Spatie \PdfToImage \Exceptions \PageDoesNotExist ;
14
15
use Spatie \PdfToImage \Exceptions \PdfDoesNotExist ;
15
- use ImagickPixel ;
16
16
17
17
class Pdf
18
18
{
@@ -152,7 +152,7 @@ public function selectPages(int ...$pages): static
152
152
public function pageCount (): int
153
153
{
154
154
if ($ this ->imagick === null ) {
155
- $ this ->imagick = new Imagick () ;
155
+ $ this ->imagick = new Imagick ;
156
156
$ this ->imagick ->pingImage ($ this ->filename );
157
157
}
158
158
@@ -170,7 +170,7 @@ public function pageCount(): int
170
170
public function getSize (): PageSize
171
171
{
172
172
if ($ this ->imagick === null ) {
173
- $ this ->imagick = new Imagick () ;
173
+ $ this ->imagick = new Imagick ;
174
174
$ this ->imagick ->pingImage ($ this ->filename );
175
175
}
176
176
@@ -233,7 +233,7 @@ public function getImageData(string $pathToImage, int $pageNumber): Imagick
233
233
* Reinitialize imagick because the target resolution must be set
234
234
* before reading the actual image.
235
235
*/
236
- $ this ->imagick = new Imagick () ;
236
+ $ this ->imagick = new Imagick ;
237
237
238
238
$ this ->imagick ->setResolution ($ this ->resolution , $ this ->resolution );
239
239
0 commit comments