Convert PDF to Image using PHP

Поділитися
Вставка
  • Опубліковано 11 лис 2024

КОМЕНТАРІ • 11

  • @abnerpablo334
    @abnerpablo334 Рік тому

    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

  • @sachinmishra-x6b
    @sachinmishra-x6b Рік тому

    hello i want to integrate this into my CI project my php versionj is 5.6 so how should i do it please explain...

  • @Tocarose-e2j
    @Tocarose-e2j 2 роки тому

    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.

    • @mashtech5092
      @mashtech5092  2 роки тому

      What exact error you are getting? show me detail here!

  • @shoaibmangi5474
    @shoaibmangi5474 2 роки тому

    Great work

  • @michaelcuento
    @michaelcuento 2 роки тому

    Is it possible if we can use url not path to convert?

    • @mashtech5092
      @mashtech5092  2 роки тому

      It actually needs path for pdf to convert it, if you have valid URL towards pdf file it will work too!

  • @sarkariresultfun6757
    @sarkariresultfun6757 2 роки тому

    Is it required any paid api

  • @freeproject1101
    @freeproject1101 Рік тому

    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

    • @mashtech5092
      @mashtech5092  Рік тому

      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