pdf to image and image to pdf 

Install:

$ sudo apt-get install convert

PDF to JPG:

$ convert -density 200 -quality 100 -colorspace RGB input.pdf output.jpg

JPG to PDF:

convert `ls -v *.jpg` final_file.pdf
Anúncios