5 image, graphic, PostScript, PDF, and
23 is a general purpose document viewer.
24 It can be used to display the individual pages
32 device independent output
37 output is simply converted to PostScript in order to be viewed.
38 It can also be used to view any number of
45 file, an Inferno bitmap file, or other common format).
49 In the absence of named files,
51 reads one from standard input.
55 runs in the window in which it is started
56 and leaves the window unchanged.
61 to grow the window if necessary
62 to display the page being viewed.
67 to create a new window for itself.
68 The newly created window will grow as under the
71 If being used to display
73 only one file may be specified on the command line.
77 option sets the resolution for PostScript and PDF
78 files, in pixels per inch.
79 The default is 100 ppi.
82 option reverses the order in which pages are displayed.
84 When viewing images with
91 for more images to display.
96 to not load any graphics files nor to read
97 from standard input but rather to listen
98 for ones to load from the plumbing channel.
102 option with a page address
104 jumps to the specified page on startup.
106 Pressing and holding button 1 permits panning about the page.
108 Button 2 raises a menu of operations on the current image or the
109 entire set. The image transformations are non-destructive and are
110 valid only for the currently displayed image. They are lost as soon
111 as another image is displayed.
112 The button 2 menu operations are:
116 Restores the image to the original. All modifications are lost.
119 controls magnification.
122 Resizes the image so that it fits in the current window.
125 Rotates the image 90 degrees clockwise
128 Toggles whether images are displayed upside-down.
131 Displays the next page.
134 Displays the previous page.
137 Writes the current page address to the snarf buffer.
140 Displays the current image in a new page window.
141 Useful for selecting important pages from large documents.
144 Asks for a filename and writes the current image as
148 Shows the current image using external
150 program in a separate window. This is mostly useful for
154 Button 3 raises a menu of the
156 to be selected for viewing in any order.
161 control-D exits the program.
163 To go to a specific page, one can type its number followed by enter.
164 Typing left arrow, backspace, or minus displays the previous page.
165 Typing right arrow, space, or enter displays the next page.
166 The up and down arrow pan up and down one half screen height,
167 changing pages when panning off the top or bottom of the page.
172 to draw each page of PostScript
176 It also calls a variety of conversion programs, such as those described in
178 to convert the various raster graphics formats
179 into Inferno bitmap files.
180 Pages are converted ``on the fly,'' as needed.
184 page /sys/src/cmd/gs/examples/tiger.eps
185 Display a color PostScript file.
188 page /usr/inferno/icons/*.bit
189 Browse the Inferno bitmap library.
192 page -j /sys/doc/troff.pdf!7 /sys/doc/troff.pdf
193 Jump to page 7 in the troff manual.
196 man -t page | page -w
197 Preview this manual in a new window.
204 .B /sys/src/cmd/page.c
206 The interface to the plumber is unsatisfactory. In particular,
207 document references cannot be sent
208 via plumbing messages.