currently my system is powered by ubuntu. I wanted to know how can I convert pdf to JPG or PNG?
Any help will be greatly appreciated. Thanks a lot in advance.
currently my system is powered by ubuntu. I wanted to know how can I convert pdf to JPG or PNG?
Any help will be greatly appreciated. Thanks a lot in advance.
Well you will be able to do the same by using command-line utility. It seems to be part of Imagemagick suite and you will be install the same by using synaptic.
Now in order to convert PDF file to PNG you have to use below mentioned command.
Code:convert infile.pdf outfile.png
I got when I was trying to number of odd size pdf documents to A4 format.
use pdftk in order to rotate the picture.
Code:pdftk your_input_file.pdf cat 1-endW output rotated.pdf
after that use imagemagicks in order to convert ps fil and used the -density 300 so that I can have 300dpi resolution.
Code:convert -density 300 rotated.pdf rotated.ps
finally use ghostscript so that one can get output in A4 format.
Code:gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=a4 -sOutputFile=output.pdf rotated.ps
you will be able to open pdf file in evince. Go for print to file and click on page setup and go for pages per side and click on Use 4. Now you will see that new pdf file with 4 pages at every side has been created. Now you can convert the same into png document by using below mentioned command.
Code:convert 4pages_per_side.pdf 4pages_per_side.png
Bookmarks