I’m using this to convert a PDF to PNG:
exec('/usr/bin/convert -density 96 -quality 85 a.pdf[0] a.png');
I have also tried to make it as simple as this:
exec('/usr/bin/convert -colorspace RGB "a.pdf[0]" "a.png"');
but the source PDF file I gave has only one image and no text, and that image is 700×400 px size and still, the PNG that results is small as 100×30 for example.
How can I convert in order to result the original sized image? Am I doing something wrong?
I ended up using the command along with “-density 350%” parameter. This gave me the exact picture size every time and has worked so far.
Thanks for you time.