Prev | Current Page 1085 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


You can display any PS or PDF file you happen to have on your computer. For example, if the
samba package is installed, you can type the following to display a PDF file (otherwise, you can
find your own PDF file to try it):
$ ghostscript -sDEVICE=x11 /usr/share/doc/samba-*/docs/Samba-HOWTOCollection.
pdf
>>showpage, press to continue<<
581
Working with Words and Images 21
At the prompt, press Enter (or Return) to go through the file one page at a time. When you have
reached the end of the document, you can type the name of another PostScript or PDF file and
page through that file. When you are done, type quit.
You may also see warning or error messages if ghostscript detects problems in the PostScript or
PDF file. In most cases, if you can see the document??™s contents, you can ignore the messages.
The ggv command (GNOME ghostview) is another, more friendly way of viewing PostScript files.
To use ggv to open a file called rbash.ps, type the following:
$ ggv /usr/share/doc/bash-doc-*/bashref.ps
When the ghostview window opens, you can see the document. Left-click on the page and move
the mouse up and down to scroll the document. Use the Page Up and Page Down keys to page
through the document. You can click a page number in the left column to jump to a particular
page or click the Print All button to print the entire document.


Pages:
1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097