As per your advice i used "extractallimages.pl -O 1 main.pdf /tmp". No error found but image not saved in the tmp path. Could you please help me to solve this problem. I installed "image magic 6.4.0-2 Q16". And also which option is suitable for to export all images from pdf file.