COLLEGE OF ARTS AND SCIENCES Department of Mathematics and Statistics


Converting File Formats

Linux has a number of scripts built in for converting files from one format to another. Most of these scripts are simply front ends for Ghostscript. We list many of these conversion scripts below, with annotations for those most commonly used. The list is not exhaustive. Most of these scripts are in the /usr/bin directory. For other conversions, you may use ghostscript directly, based on one of the many output devices available.

One may convert postscript to almost any other format.

  • ps2ascii
  • ps2epsi
  • ps2frag
  • ps2pdf
  • ps2pk
  • ps2ps
  • pstoimg
  • pstopnm
  • pstops

PDF is a popular file format for transferring documents on the Web. It can be converted to many other formats as well.

  • pdf2dsc
  • pdf2ps
  • pdftopbm
  • pdftops
  • pdftotext

PNM is a generic file format that ghostscript uses as a sort of hub - a format to which it can convert anything, and from which it can write anything. Note in particular that it can be converted to postscript, so you can convert a lot of formats to postscript by first changing them to pnm.

  • pnm2ppa
  • pnmtoddif
  • pnmtofits
  • pnmtoplainpnm
  • pnmtops
  • pnmtorle
  • pnmtosir
  • pnmtotiffcmyk
  • pnmtofiasco
  • pnmtojbig
  • pnmtopng
  • pnmtorast
  • pnmtosgi
  • pnmtotiff
  • pnmtoxwd

PNG is a lossless graphics format that is free.

  • pngtopnm

GIF is a more commonly used graphics format, but is under license to Unisys, hence it might cost you to use it. It is inferior to png anyway.

  • gif2tiff
  • giftopnm

JPEG is a lossy graphics format used most often for photos and other graphics with more gradual changes from pixel to pixel.

  • jpegtopnm

TIFF is a lossy graphics format used most often for high-quality printed images.

  • tiff2bw
  • tiff2ps
  • tiff2rgba
  • tifftopnm

RTF files may be viewed using e.g. M$ Word.

  • rtf2rtf
  • sgml2rtf

Texi is a Tex info file

  • texi2dvi
  • texi2dvi4a2ps
  • texi2html
  • texi2pdf

SGML is a printer's markup language.

  • sgml2html
  • sgml2info
  • sgml2latex
  • sgml2lyx
  • sgml2rtf
  • sgml2txt
  • sgml2xml