PHP code example of artwl / pdf2image-laravel
1. Go to this page and download the library: Download artwl/pdf2image-laravel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
artwl / pdf2image-laravel example snippets
use Pdf2Image;
$pageCount = Pdf2Image::setFile(public_path() . "/imgs/test.pdf") -> totalPages();
use Pdf2Image;
$imgs = Pdf2Image::setFile(public_path() . "/imgs/test.pdf") -> saveImages(public_path() . "/imgs/");
use Pdf2Image;
$imgs = Pdf2Image::setFile(public_path() . "/imgs/test.pdf") -> saveImages(public_path() . "/imgs/", 0);