Convert pdf documents to jpeg images
July 4, 2008 at 9:07 am | In Development, linux, reviews | Leave a CommentTags: convert, Development, linux, open source, tips
If you want to convert your pdf document into a jpeg image, 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.
Cheers.
No Comments Yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.