Skip to content

nayzawoo/pdf-to-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF to Image

Build Status

PDF to image(jpg/png) using (libvips, php-vips)

Requirements

Installation

$ composer require nayzawoo/pdf-to-image
<?php

use NayZawOo\PdfToImage\PDF;

$pdf = new PDF('example/source.pdf', [
    'dpi' => 70, // default 300
    'page' => 1, // convert second page, default: 0
    'all_pages' => true, // default: false
]);

$pdf->saveAsImage('example/output.png'); // output png
$pdf->saveAsImage('example/output.jpg'); // output jpg
$pdf->saveAsImage('example/output.jpeg'); // output jpg

Options

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages