Could you help me, every time I run the code it returns the following error: Fatal error: in C:\xampp\htdocs\Sistema\teste_conversao_php\vendor\spatie\pdf-to-image\src\Pdf.php on line 42
When we convert from pdf to jpg, the image sizes become too large and the site gives an error. Even if I use its compression feature, I get errors in most of them, although not in every pdf file in question.
Error Brother Solotion ? Fatal error: Uncaught Error: Class 'Imagick' not found in D:\xampp\htdocs\pdf\vendor\spatie\pdf-to-image\src\Pdf.php:108 Stack trace: #0 D:\xampp\htdocs\pdf\convert.php(8): Spatie\PdfToImage\Pdf->getNumberOfPages() #1 {main} thrown in D:\xampp\htdocs\pdf\vendor\spatie\pdf-to-image\src\Pdf.php on line 108
You have no imagick extension installed in your system, kindly follow this: github.com/spatie/pdf-to-image#requirements medium.com/@laksmise/install-imagemagick-php-extension-in-windows-6bc4f8b7862f
Could you help me, every time I run the code it returns the following error:
Fatal error: in C:\xampp\htdocs\Sistema\teste_conversao_php\vendor\spatie\pdf-to-image\src\Pdf.php on line 42
hello i want to integrate this into my CI project my php versionj is 5.6 so how should i do it please explain...
When we convert from pdf to jpg, the image sizes become too large and the site gives an error.
Even if I use its compression feature, I get errors in most of them, although not in every pdf file in question.
What exact error you are getting? show me detail here!
Great work
Is it possible if we can use url not path to convert?
It actually needs path for pdf to convert it, if you have valid URL towards pdf file it will work too!
Is it required any paid api
No, its free.
Error Brother
Solotion ?
Fatal error: Uncaught Error: Class 'Imagick' not found in D:\xampp\htdocs\pdf\vendor\spatie\pdf-to-image\src\Pdf.php:108 Stack trace: #0 D:\xampp\htdocs\pdf\convert.php(8): Spatie\PdfToImage\Pdf->getNumberOfPages() #1 {main} thrown in D:\xampp\htdocs\pdf\vendor\spatie\pdf-to-image\src\Pdf.php on line 108
You have no imagick extension installed in your system, kindly follow this:
github.com/spatie/pdf-to-image#requirements
medium.com/@laksmise/install-imagemagick-php-extension-in-windows-6bc4f8b7862f