spatie / pdf-to-image

Convert a pdf to an image
https://murze.be/2015/07/convert-a-pdf-to-an-image-using-php/
MIT License
1.3k stars 228 forks source link

Total page number is always one. #143

Closed bedus-creation closed 4 years ago

bedus-creation commented 4 years ago

If I read a file from storage path, it always shows the number of pages is 1 for any files.

$pdf = new \Spatie\PdfToImage\Pdf(storage_path('apdf.pdf')); // It has 14 pages.
$pdf->getNumberOfPages(); //1
bedus-creation commented 4 years ago

Imagemagic wasnot installed into my system. I think It should show exception than number 1. Thanks.