File: xpdf.hlp

package info (click to toggle)
xpdf 0.7a-1
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 1,356 kB
  • ctags: 2,608
  • sloc: cpp: 22,726; ansic: 683; makefile: 205; sh: 195
file content (324 lines) | stat: -rw-r--r-- 10,699 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
! Generated automatically by mantohlp
1 xpdf

       xpdf  -  Portable  Document Format (PDF) file viewer for X
       (version 0.7a)

       xpdf [options] [PDF-file [page]]

       Xpdf is a viewer for Portable Document Format (PDF) files.
       (These  are  also  sometimes  also called 'Acrobat' files,
       from the name of Adobe's PDF software.)  Xpdf  runs  under
       the X Window System on UNIX, VMS, and OS/2.

       To run xpdf, simply type:

              xpdf file.pdf

       where  file.pdf  is  your  PDF file.  The file name can be
       followed by a number specifying the page which  should  be
       displayed first, e.g.:

              xpdf file.pdf 18

       You can also start xpdf without opening any files:

              xpdf

2 OPTIONS

       X  resources are listed in square brackets with the corre-
       sponding option.

       -err   Send error messages to /dev/tty instead  of  stderr
              (useful  if  xpdf  is started from another applica-
              tion, e.g., netscape which  otherwise  pops  up  an
              annoying little window for every error).

       -z number
              Set  the initial zoom factor (-5 .. 5).  [xpdf.ini-
              tialZoom]

       -g geometry
              Set the initial  window  geometry.   (-geometry  is
              equivalent.)  [xpdf.geometry]

       -remote name
              Start/contact  xpdf  remote  server  with specified
              name (see the REMOTE SERVER MODE section below).

       -raise Raise  xpdf  remote  server  window  (with  -remote
              only).

       -quit  Kill xpdf remote server (with -remote only).

       -cmap  Install  a  private  colormap.   This is ignored on
              TrueColor visuals.  [xpdf.installCmap]

       -rgb number
              Set the size of largest RGB cube xpdf will  try  to
              allocate.  The default is 5 (for a 5x5x5 cube); set
              to  a  smaller  number  to  conserve  color   table
              entries.   This  is  ignored with private colormaps
              and on TrueColor visuals.

       -ps PS-file
              Set the default file name  for  PostScript  output.
              This can also be of the form '|command' to pipe the
              PostScript through a command.  [xpdf.psFile]

       -level1
              Generate  Level  1   PostScript.    The   resulting
              PostScript  files  will be significantly larger (if
              they contain images), but will  print  on  Level  1
              printers.   This  also converts all images to black
              and white.  [xpdf.psLevel1]

       -cmd   Print commands  as  they're  executed  (useful  for
              debugging).

       -h     Print usage information.  (-help is equivalent.)

       Several  other  standard X options and resources will work

       as expected:

       -display display
              [xpdf.display]

       -fg color
              (-foreground is equivalent.)  [xpdf.foreground]

       -bg color
              (-background is equivalent.)  [xpdf.background]

       -font font
              (-fn is equivalent.)  [xpdf.font]

       The color and font options only affect the user  interface
       elements, not the PDF display (the 'paper').

       The  following X resources do not have command line option
       equivalents:

       xpdf.urlCommand
              Set the command executed when you click  on  a  URL
              link.   See  the  WEB  BROWSERS  section  below for
              details.

2 CONTROLS

   On-screen controls, at the bottom of the xpdf window
       left/right arrow buttons
              Move to the previous/next page.

       double left/right arrow buttons
              Move backward or forward by ten pages.

       'Page' entry box
              Move  to  a specific page number.  Click in the box
              to activate it, type  the  page  number,  then  hit
              return.

       magnifying glass buttons
              Increase and decrease the resolution, i.e., zoom in
              and zoom out.

       binoculars button
              Find a text string.

       print button
              Bring up a dialog for generating a PostScript file.
              The  dialog  has  options  to  set  the pages to be
              printed and the PostScript  file  name.   The  file
              name  can  be  '-' for stdout or '|command' to pipe
              the PostScript through a command, e.g., '|lpr'.

       '?' button
              Bring up the 'about xpdf' window.

       link info
              The space between the '?'  and  'Quit'  buttons  is
              used to show the URL or external file name when the
              mouse is over a link.

       'Quit' button
              Quit xpdf.

   Menu
       Pressing the right mouse button will  post  a  popup  menu
       with the following commands:

       Open...
              Open a new PDF file via a file requester.

       Save PDF...
              Save the current file via a file requester.

       Rotate left
              Rotate the page 90 degrees counterclockwise.

       Rotate right
              Rotate  the  page  90  degrees  clockwise.  The two

              rotate commands  are  intended  primarily  for  PDF
              files  where the rotation isn't correctly specified
              in the file, but they're  also  useful  if  your  X
              server doesn't support font rotation.

       Quit   Quit xpdf.

   Text selection
       Dragging  the  mouse  with  the left button held down will
       highlight an arbitrary rectangle.  Any  text  inside  this
       rectangle will be copied to the X selection buffer.

   Links
       Clicking  on  a hyperlink will jump to the link's destina-
       tion.  A link to another PDF document will make xpdf  load
       that  document.   A 'launch' link to an executable program
       will display a dialog, and if you click 'ok', execute  the
       program.   URL links call an external command (see the WEB
       BROWSERS section below).

   Panning
       Dragging the mouse with the middle button held  down  pans
       the window.

   Key bindings
       o      Open a new PDF file via a file requester.

       f      Find a text string.

       n      Move to the next page.

       p      Move to the previous page.

       <Space> or <PageDown> or <Next>
              Scroll down on the current page; if already at bot-
              tom, move to next page.

       <Backspace> or <Delete> or <PageUp> or <Previous>
              Scroll up on the current page; if already  at  top,
              move to previous page.

       <Home> Scroll to top of current page.

       <End>  Scroll to bottom of current page.

       arrows Scroll the current page.

       control-L
              Redraw the current page.

       q      Quit xpdf.

2 WEB_BROWSERS

       If  you  want  to  run xpdf automatically from netscape or
       mosaic (and probably other browsers) when you click  on  a
       link to a PDF file, you need to edit (or create) the files
       .mime.types and  .mailcap  in  your  home  directory.   In
       .mime.types add the line:

              application/pdf pdf

       In .mailcap add the lines:

              # Use xpdf to view PDF files.
              application/pdf; xpdf -err %s

       Make sure that xpdf is on your executable search path.

       When you click on a URL link in a PDF file, xpdf will exe-
       cute  the  command  specified   by   the   xpdf.urlCommand
       resource,  replacing  an  occurrence of '%s' with the URL.
       For example, to call  netscape  with  the  URL,  use  this
       resource setting:

              xpdf.urlCommand: netscape -remote 'openURL(%s)'

2 REMOTE_SERVER_MODE

       Xpdf  can be started in remote server mode by specifying a
       server name (in addition to the file name  and  page  num-
       ber).  For example:

              xpdf -remote myServer file.pdf

       If  there is currently no xpdf running in server mode with
       the name 'myServer', a new xpdf window will be opened.  If
       another command:

              xpdf -remote myServer another.pdf 9

       is  issued,  a  new  copy  of  xpdf  will  not be started.
       Instead, the first xpdf (the server) will load another.pdf
       and display page nine.  If the file name is the same:

              xpdf -remote myServer another.pdf 4

       the xpdf server will simply display the specified page.

       The -raise option tells the server to raise its window; it
       can be specified with or without a file name and page num-
       ber.

       The  -quit option tells the server to close its window and
       exit.

2 CONFIGURATION_FILE

       Xpdf will read a file called .xpdfrc from your home direc-
       tory (if it exists).  This file can contain two  types  of
       entries.

       fontpath directory
              Look for Type 1 fonts in directory.  Xpdf uses this
              only to get the font encoding.   For  display,  the
              font must also be mapped with a fontmap entry.

       fontmap PDF-font X-font
              Map  PDF-font  (as  referenced in a PDF file) to X-
              font, which should be a standard X font  descriptor
              with '%s' in the pixel size position.

       For example, use:

              fontmap        TimesCE-Roman       -*-times-medium-
              r-*-*-%s-*-*-*-*-*-iso8859-2

       to map the  Central  European  (Latin-2)  version  of  the
       Times-Roman  font.  This assumes that you've installed the
       appropriate X fonts (see mkfontdir(1)).  Xpdf knows  about
       the ISO8859-2 encoding, so you don't need a fontpath entry
       for these fonts.  To use the Bakoma Type 1 fonts, do this:

              fontpath /home/derekn/fonts/bakoma
              fontmap      cmb10      -bakoma-cmb10-medium-r-nor-
              mal--%s-*-*-*-p-*-adobe-fontspecific
              fontmap    cmbsy10    -bakoma-cmbsy10-medium-r-nor-
              mal--%s-*-*-*-p-*-adobe-fontspecific
              etc...

       This  assumes  that the Type 1 font files are available in
       the directory /home/derekn/fonts/bakoma.

2 BUGS

       This  is  a  beta  release  of xpdf, and there are still a
       bunch of PDF features which I have yet to implement.

       At this point, the biggest problem is that embedded  fonts
       are not handled properly.

2 AUTHOR

       The   xpdf   software   and  documentation  are  copyright
       1996-1998 Derek B. Noonburg (derekn@aimnet.com).

2 SEE_ALSO

       pdftops(1), pdftotext(1)
       http://www.aimnet.com/~derekn/xpdf/