Tuesday, January 27, 2009

LInux Tips

Find the version of Ubuntu you are using.
On the command line: lsb_release -a

Look at these files

/etc/issue
/etc/lsb-release
Convert pdf to jpeg in Linux from command prompt

First you need to have ImageMagick installed in your Linux machine.

To install ImageMagick in Debian, run the following command:

$ sudo aptitude install imagemagick

To convert pdf file to image use the ‘convert‘ command:

$ convert doc.pdf doc.jpeg

convert to tiff

$ convert doc.pdf doc.tiff


If the default output is too low resolution, you can add “-density NNN”, where NNN is a number.

EG: I just did an A4 PDF to a PNG, but it came out too small. To make it bigger/higher res, I did: “convert -density 300 input.pdf output.png”

No comments: