PHPackages                             appkita/pdftoimage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. appkita/pdftoimage

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

appkita/pdftoimage
==================

Convert PDF to Image using php

1.0.0(4y ago)186MITPHPPHP &gt;=7.0

Since Jun 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/gunantos/pdftoimage-php)[ Packagist](https://packagist.org/packages/appkita/pdftoimage)[ Fund](https://sponsor.app-kita.net)[ RSS](/packages/appkita-pdftoimage/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

PDF TO IMAGE
============

[](#pdf-to-image)

[![PHP Composer](https://github.com/gunantos/pdftoimage-php/actions/workflows/php.yml/badge.svg)](https://github.com/gunantos/pdftoimage-php/actions/workflows/php.yml)[![Discord](https://camo.githubusercontent.com/84139f236ed24ffc8f4c6fc45485801bc437ebbdf189a2c1686278b39cc78fc2/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3834363033363932303831313132363834343f7374796c653d706c6173746963)](https://camo.githubusercontent.com/84139f236ed24ffc8f4c6fc45485801bc437ebbdf189a2c1686278b39cc78fc2/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3834363033363932303831313132363834343f7374796c653d706c6173746963)[![Travis (.org)](https://camo.githubusercontent.com/9fb97d0a3451b70e8f767c086d63615eb4bf044220a0ca89877f6c943b5251ab/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f67756e616e746f732f706466746f696d6167652d7068703f7374796c653d706c6173746963)](https://camo.githubusercontent.com/9fb97d0a3451b70e8f767c086d63615eb4bf044220a0ca89877f6c943b5251ab/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f67756e616e746f732f706466746f696d6167652d7068703f7374796c653d706c6173746963)[![GitHub branch checks state](https://camo.githubusercontent.com/8daa4ccf127722487d926d75bb04837cbe8ddf6b9e367d1d0229fc529163af71/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b732d7374617475732f67756e616e746f732f706466746f696d6167652d7068702f6d61696e3f7374796c653d706c6173746963)](https://camo.githubusercontent.com/8daa4ccf127722487d926d75bb04837cbe8ddf6b9e367d1d0229fc529163af71/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b732d7374617475732f67756e616e746f732f706466746f696d6167652d7068702f6d61696e3f7374796c653d706c6173746963)[![Bitbucket Pipelines](https://camo.githubusercontent.com/f0f84ce9f810a991f6d3e716d48bda6b5af9d783f886865ca3995607c00449d9/68747470733a2f2f696d672e736869656c64732e696f2f6269746275636b65742f706970656c696e65732f616e6474686f38392f706466746f696d6167652d7068702f6d61696e)](https://camo.githubusercontent.com/f0f84ce9f810a991f6d3e716d48bda6b5af9d783f886865ca3995607c00449d9/68747470733a2f2f696d672e736869656c64732e696f2f6269746275636b65742f706970656c696e65732f616e6474686f38392f706466746f696d6167652d7068702f6d61696e)
[![](https://camo.githubusercontent.com/c1533754910d219fca84532dd6b2f19dda3ea0634eabea9f01b277bbd9f09c8e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73706f6e736f72732f67756e616e746f733f6c6f676f3d67756e616e746f73267374796c653d666f722d7468652d6261646765 "Pay Coffe")](https://sponsor.app-kita.net)
Pdf to image library using Imagick

Installation

- composer `composer install appkita/pdftoimage`
- download [Github](https://github.com/gunantos/pdftoimage-php/releases)

NEW Version 3.0 (BETA)
----------------------

[](#new-version-30-beta)

- add convert using ghostscript

### INSTALLATION EXTENSION

[](#installation-extension)

1. Windows a. Ghostscript download from [ghostscript](https://www.ghostscript.com/download/gsdnld.html)add your gs bin folder to PATH Environment b. Imagick

    - Check PHP Version `php -i|find "PHP Version"`
    - Check PHP is Thread Safety `php -i|find "Thread Safety"`
    - Check PHP Architecture `php -i|find "Architecture"`
    - Download imagick from [Imagick](https://pecl.php.net/package/imagick)
    - Once you downloaded the correct files:
        - Extract from `php_imagick-….zip` the `php_imagick.dll `file, and save it to the ext directory of your PHP installation
        - Extract from `ImageMagick-….zip` the DLL files located in the bin folder that start with `CORE_RL` or `IM_MOD_RL`, and save them to the PHP root directory `(where you have php.exe)`, or to a directory in your PATH variable
        - Add this line to your `php.ini` file: `extension=php_imagick.dll`
        - Restart the Apache/NGINX Windows service (if applicable)
    - To test if the extension works, you can run this PHP code: ```
