Jump to content

ImageMagick and Ghostscript work but I still can't convert pdf to jpg


matthewst

Recommended Posts

Installed ImageMagick and GhostScript with macPorts. Both installs pass the "working" tests listed on there respective sites. When I try a conversion nothing happens.

 

convert.php

<?php
//$pdf = "/images/image.pdf";
//$pdfimage = pdf_open_image_file($pdf, "jpeg", "test.jpg");
//pdf_place_image($pdf, $pdfimage, 10, 10, 0.6);

exec("convert images/image.pdf images/image.jpeg")

?>

<html>
<head>
<title>pdf to jpg converter</title>
</head>
<?php
echo "<img src='images/image.jpg'>";
?>
<body>
</body>
</html>

 

Am I missing something?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.