Skip to content

citywill/pdf2pngs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pdf2png

环境

ubuntu

sudo apt-get install php-imagick
sudo service apache2 reload

使用

include 'PdfToPng.php';

$pdfPath = './pdf';
$pdf = $pdfPath . '/tet.pdf';

$pngPath = './png/test';

$p2p = new PdfToPng($pdf, $pngPath);

$pngs = $p2p->getPngs();

print_r($pngs);

/*
输出结果:
array(
    '000.png',
    '001.png',
    '002.png',
    '003.png',
)
*/

About

convert pdf to png files with imagick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages