]> git.lizzy.rs Git - plan9front.git/blob - sys/man/1/page
merge
[plan9front.git] / sys / man / 1 / page
1 .TH PAGE 1
2 .SH NAME
3 page \- view 
4 FAX, 
5 image, graphic, PostScript, PDF, and
6 typesetter output
7 files
8 .SH SYNOPSIS
9 .B page
10 [
11 .B -iRw
12 ] [
13 .B -p
14 .I ppi
15 ] [
16 .B -j
17 .I addr
18 ] [
19 .IR file ...
20 ]
21 .SH DESCRIPTION
22 .I Page
23 is a general purpose document viewer.
24 It can be used to display the individual pages
25 of a
26 PostScript,
27 PDF,
28 or 
29 .IR tex (1)
30 or 
31 .IR troff (1)
32 device independent output
33 file.
34 .I Tex
35 or 
36 .I troff
37 output is simply converted to PostScript in order to be viewed.
38 It can also be used to view any number of
39 graphics files
40 (such as a 
41 FAX
42 page, 
43 a Plan 9
44 .IR image (6)
45 file, an Inferno bitmap file, or other common format).
46 .I Page
47 displays these
48 in sequence.
49 In the absence of named files,
50 .I page
51 reads one from standard input.
52 .PP
53 By default,
54 .I page
55 runs in the window in which it is started
56 and leaves the window unchanged.
57 The 
58 .B -R
59 option causes 
60 .I page 
61 to grow the window if necessary
62 to display the page being viewed.
63 The
64 .B -w
65 option causes 
66 .I page 
67 to create a new window for itself.
68 The newly created window will grow as under the
69 .B -R
70 option.
71 .PP
72 The 
73 .B -p 
74 option sets the resolution for PostScript and PDF
75 files, in pixels per inch.
76 The default is 100 ppi.
77 .PP
78 When viewing images with 
79 .IR page ,
80 it listens to the 
81 .B image
82 plumbing channel
83 (see 
84 .IR plumber (4))
85 for more images to display.
86 The 
87 .B -i
88 option causes 
89 .I page
90 to not load any graphics files nor to read 
91 from standard input but rather to listen
92 for ones to load from the plumbing channel.
93 .PP
94 The
95 .B -j
96 option with a page address
97 .I addr
98 jumps to the specified page on startup.
99 .PP
100 Pressing and holding button 1 permits panning about the page.
101 .PP
102 Button 2 raises a menu of operations on the current image or the
103 entire set.  The image transformations are non-destructive and are
104 valid only for the currently displayed image.  They are lost as soon
105 as another image is displayed.
106 The button 2 menu operations are:
107 .TF Resize
108 .TP
109 .B Orig size
110 Restores the image to the original. All modifications are lost.
111 .TP
112 .B Zoom
113 controls magnification.
114 .TP
115 .B Fit
116 Resizes the image so that it fits in the current window.
117 .TP
118 .B Rotate 90
119 Rotates the image 90 degrees clockwise
120 .TP
121 .B Upside down
122 Toggles whether images are displayed upside-down.
123 .TP
124 .B Next
125 Displays the next page.
126 .TP
127 .B Prev
128 Displays the previous page.
129 .TP
130 .B Snarf
131 Writes the current page address to the snarf buffer.
132 .TP
133 .B Zerox
134 Displays the current image in a new page window. 
135 Useful for selecting important pages from large documents.
136 .TP
137 .B Write
138 Asks for a filename and writes the current image as
139 Plan 9 bitmap.
140 .TP
141 .B Ext
142 Shows the current image using external
143 .IR jpg (1)
144 program in a separate window. This is mostly useful for
145 animated gifs. 
146 .PD
147 .PP
148 Button 3 raises a menu of the
149 pages
150 to be selected for viewing in any order.
151 .PP
152 Typing a
153 .B q
154 or
155 control-D exits the program.
156 .PP
157 To go to a specific page, one can type its number followed by enter.
158 Typing left arrow or backspace displays the previous page.
159 Typing right arrow, space, or enter displays the next page.
160 The up and down arrow pan up and down one half screen height,
161 changing pages when panning off the top or bottom of the page.
162 .PP
163 .I Page
164 calls
165 .IR gs (1)
166 to draw each page of PostScript
167 and
168 PDF
169 .IR files .
170 It also calls a variety of conversion programs, such as those described in
171 .IR jpg (1),
172 to convert the various raster graphics formats
173 into Inferno bitmap files.
174 Pages are converted ``on the fly,'' as needed.
175 .SH EXAMPLES
176 .TP
177 .L
178 page /sys/src/cmd/gs/examples/tiger.eps
179 Display a color PostScript file.
180 .TP
181 .L
182 page /usr/inferno/icons/*.bit
183 Browse the Inferno bitmap library.
184 .TP
185 .L
186 page -j /sys/doc/troff.pdf!7 /sys/doc/troff.pdf
187 Jump to page 7 in the troff manual.
188 .TP
189 .L
190 man -t page | page -w
191 Preview this manual in a new window.
192 .SH "SEE ALSO
193 .IR gs (1),
194 .IR jpg (1),
195 .IR tex (1),
196 .IR troff (1)
197 .SH SOURCE
198 .B /sys/src/cmd/page.c
199 .SH BUGS
200 The interface to the plumber is experimental.
201 .SH HISTORY
202 .I Page
203 first appeared in Plan 9 from Bell Labs. It was rewritten from
204 scratch for 9front (September, 2011).