Viewing and opening different file types and formats

It would be both impossible and useless to try to make an exhaustive list of all the file formats the reader is likely to come across on Linux. However, in the next sections we note some of the most important file types and formats and comment on how to view or open them.

PostScript is a page description language. Actually it is more than that — in fact it is a specialpurpose programming language, but designed (by Adobe) for the job of describing how graphic elements and characters are laid out on a page. PostScript is a fully open and documented standard. A PostScript printer will accept a PostScript file and print it directly. If you have a different type of printer, the printing system will filter the PostScript appropriately before passing it to the printer, but PostScript is considered the lingua franca of printing in Linux. Applications that produce output for printing produce that output in the form of PostScript.

A PostScript file is a plain text file with a certain specific format. It always starts something like this:

Although raw PostScript looks odd at first glance, it is not difficult to learn how to write simple PostScript files to create pages with geometrical shapes and text on them, for example.

A PostScript file is typically called something like file.ps. An encapsulated PostScript file may have the file extension .eps. To view it you can use any of the programs gv, ggv, or kghostview. These all use ghostscript (gs) in the background to render the file in graphical form.

You can print a PostScript file directly from the command line with [email protected]:~/tmp> lpr file.ps

Was this article helpful?

0 0

Post a comment