|Restores the image to the original. All modifications are lost.|
|Zoom||Prompts the user to sweep a rectangle on the image which is expanded proportionally to the rectangle.|
|Resizes the image so that it fits in the current window.|
|Rotates the image 90 degrees clockwise|
|Toggles whether images are displayed upside-down.|
|Next||Displays the next page.|
|Prev||Displays the previous page.|
|Zerox||Displays the current image in a new page window. Useful for selecting important pages from large documents.|
|Reverses the order in which pages are displayed.|
|Write||Writes the image to file.|
Typing a q or control-D exits the program. Typing a u toggles whether images are displayed upside-down. (This is useful in the common case of mistransmitted upside-down faxes). Typing a r reverses the order in which pages are displayed. Typing a w will write the currently viewed page to a new file as a compressed image(7) file. When possible, the filename is of the form basename.pagenum.bit. Typing a d removes an image from the working set.
To go to a specific page, one can type its number followed by enter. Typing left arrow, backspace, or minus displays the previous page. Typing right arrow, space, or enter displays the next page. The up and down arrow pan up and down one half screen height, changing pages when panning off the top or bottom of the page.
Page calls Unixs gs(1) to draw each page of PostScript and PDF files. It also calls a variety of conversion programs, such as those described in jpg(1), to convert the various raster graphics formats into Inferno bitmap files. Pages are converted on the fly, as needed.
page /sys/src/cmd/gs/examples/tiger.eps Display a color PostScript file. page /usr/inferno/icons/*.bit Browse the Inferno bitmap library. man -t page | page -w Preview this manual in a new window.
The mouse cursor changes to an arrow and ellipsis when page is reading or writing a file.
Page supports reading of only one document file at a time, and the user interface is clumsy when viewing very large documents.
When viewing multipage PostScript files that do not contain %%Page comments, the button 3 menu only contains this page and next page: correctly determining page boundaries in Postscript code is not computable in the general case.
If page has trouble viewing a Postscript file, it might not be exactly conforming: try viewing it with the -P option.
The interface to the plumber is unsatisfactory. In particular, document references cannot be sent via plumbing messages.
There are too many keyboard commands and menu items.
Displaying a PostScript or PDF file depends both on having GhostScript (see gs(1)) installed and on the underlying operating system providing a file descriptor device tree at /dev/fd.
Some FreeBSD installations do not provide file descriptors greater than 2 in /dev/fd. To fix this, add
to /etc/fstab, and then mount /dev/fd. (Adding the line to fstab ensures causes FreeBSD to mount the file system automatically at boot time.)
/fdescfs /dev/fd fdescfs rw 0 0