I'm having a problem converting a pdf to png, but only when the pdf file has more than one page.
this is what I have:
shell_exec("convert -density 600 -quality 100 ".$filepath."/".$filename.$extension." ".$filepath."/".$filename.".png");
The funny part is that it works if the pdf has one page and it also works if I run it on the terminal even if it is a multi page pdf.
Any thoughts?