|All requests||>||What is the best PHP pdf to image class?||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Mohamed Amine - 5 years ago (2017-03-21)
I need to convert PDF file to image without ImageMagick
1. by Manuel Lemos - 5 years ago (2017-03-22) Reply
There is one package to render PDF to images using GhostScript and another to convert PDF to HTML using Poppler.
Would these solutions work or you need to render it as an image?
install properly the library and nothing else just load the pdf file using method from file method as follows ,
$chrome=new Chrome(null,'/usr/bin/google-chrome'); $chrome->useHtmlFile(__DIR__.'/yourpdfFile.pdf'); print "Image successfully generated :".$chrome->getScreenShot().PHP_EOL;