Click here to Skip to main content
13,795,374 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
Hi,

I want to convert pdf file to jpg. kindly guide me how i do it?

Thanks in advance!
Posted 31-Aug-12 21:54pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

$im = new Imagick();

$im->setResolution(300,300);
$im->readimage('document.pdf[0]');
$im->setImageFormat('jpeg');
$im->writeImage('thumb.jpg');
$im->clear();
$im->destroy();
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.181207.3 | Last Updated 3 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100