-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong number of pages for native PDF #145
Comments
Hello,
always returns 1, in 100% of the PDFs I'm trying with.
The PDF document I'm passing has 15 pages actually. I could use some clue here.. Thanks |
Same issue. When using |
I also have the same problem. How can I do this? |
I have the same problem, anyone figured this out? |
Hi. The same for me. |
I ended up using just Imagick(); <?php
$im = new \Imagick();
$im->pingImage('file.pdf');
$pagesCount = $im->getNumberImages(); |
Hi all, When installing using To fix this simply specify the version (which you should be doing for production builds anyways) by running the following: Everything should then function as expected. Hope this helps! |
Works for me. Thanks
Works for me. Thanks. Just one note: did the changes post on spatie/laravel-medialibrary#1268 (comment) |
hi amarruda i try to install composer require spatie/pdf-to-image:2.0.1 i get error spatie/pdf-to-image 2.0.1 requires ext-imagick * -> the requested PHP extension imagick is missing from your system. $pdf->getNumberOfPages() |
Dear contributor, because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it. |
@vhcraig it needs Imagick installed, or else it won't work. Installing those in mac is hell of a work . |
Hello !
I'm having issues in a production environment with pdf-to-image, the package doesn't detect the good amount of pages in some files.
The issue is very rare, and happens in less than 1% of the time and only with native PDFs
See this issue #71
Thank you,
The text was updated successfully, but these errors were encountered: