How to convert a pdf docu to jpeg image in linux???
We would be in need of converting pdf to jpeg images frequent. But how this could be done in ours linux. I searched and had a solution as follows yaar:
It is possible to use pdftoppm and after ppmtojpeg.
First, choose your pdf document and use:
ppm file.pdf file
You will have one ppm image per pdf page. If you want only part of the document use -f int1 -l int2, int1 is the initial page and int2 is the final page.
Use the script to convert all ppm images into jpeg images:
for file in *.ppm; do ppmtojpeg $file > ${file/.ppm/.jpg}; rm $file; done
And thats it. You will have your pdf document into jpeg images.
No comments yet.