1 .\" Copyright 1996-2003 Glyph & Cog, LLC
2 .TH xpdf 1 "10 October 2003"
4 xpdf \- Portable Document Format (PDF) file viewer for X (version 2.03)
9 .RI [ page " | +" dest ]]
12 is a viewer for Portable Document Format (PDF) files. (These are also
13 sometimes also called \'Acrobat' files, from the name of Adobe's PDF
14 software.) Xpdf runs under the X Window System on UNIX, VMS, and
17 To run xpdf, simply type:
25 is your PDF file. The file name can be followed by a number
26 specifying the page which should be displayed first, e.g.:
32 You can also give a named destination, prefixed with \'+' in place of
35 You can also start xpdf without opening any files:
40 .SH CONFIGURATION FILE
41 Xpdf reads a configuration file at startup. It first tries to find
42 the user's private config file, ~/.xpdfrc. If that doesn't exist, it
43 looks for a system-wide config file, typically /etc/xpdfrc
44 (but this location can be changed when xpdf is built). See the
48 Many of the following options can be set with configuration file
49 commands or X resources. These are listed in square brackets with the
50 description of the corresponding command line option.
53 Set the initial window geometry.
56 .RB "[X resource: " xpdf.geometry ]
59 Set the window title. By default, the title will be "xpdf: foo.pdf".
60 .RB "[X resource: " xpdf.title ]
63 Install a private colormap. This is ignored on TrueColor visuals.
64 .RB "[X resource: " xpdf.installCmap ]
67 Set the size of largest RGB cube xpdf will try to allocate. The
68 default is 5 (for a 5x5x5 cube); set to a smaller number to conserve
69 color table entries. This is ignored with private colormaps and on
71 .RB "[X resource: " xpdf.rgbCubeSize ]
74 Set reverse video mode. This reverses the colors of everything except
75 images. It may not always produce great results for PDF files which
76 do weird things with color. This also causes the paper color to
78 .RB "[X resource: " xpdf.reverseVideo ]
80 .BI \-papercolor " color"
81 Set the "paper color", i.e., the background of the page display. This
82 will not work too well with PDF files that do things like filling in
83 white behind the text.
84 .RB "[X resource: " xpdf.paperColor ]
87 Set the initial zoom factor. A number specifies a zoom percentage,
88 where 100 means 72 dpi.You may also specify \'page', to fit the page
89 to the window size, or \'width', to fit the page width to the window
91 .RB "[config file: " initialZoom "; or X resource: " xpdf.initialZoom ]
93 .BI \-t1lib " font-type"
94 Set the type of font rendering for t1lib (the Type 1 rasterizer) to
95 use. Options are \'none' (don't use t1lib at all), \'plain' (use
96 non-anti-aliased fonts), \'low' or \'high' (use low-level or
97 high-level anti-aliased fonts).
98 .RB "[config file: " t1libControl ]
100 .BI \-freetype " font-type"
101 Set the type of font rendering for FreeType (the TrueType rasterizer)
102 to use. Options are \'none' (don't use FreeType at all), \'plain'
103 (use non-anti-aliased fonts), \'low' or \'high' (use anti-aliased
104 fonts; these two are identical).
105 .RB "[config file: " freetypeControl ]
108 Set the default file name for PostScript output. This can also be of
109 the form \'|command' to pipe the PostScript through a command.
110 .RB "[config file: " psFile ]
113 Set the paper size to one of "letter", "legal", "A4", or "A3". This
114 can also be set to "match", which will set the paper size to match the
115 size specified in the PDF file.
116 .RB "[config file: " psPaperSize ]
119 Set the paper width, in points.
120 .RB "[config file: " psPaperSize ]
123 Set the paper height, in points.
124 .RB "[config file: " psPaperSize ]
127 Generate Level 1 PostScript. The resulting PostScript files will be
128 significantly larger (if they contain images), but will print on Level
129 1 printers. This also converts all images to black and white.
130 .RB "[config file: " psLevel ]
132 .BI \-enc " encoding-name"
133 Sets the encoding to use for text output. The
135 must be defined with the unicodeMap command (see
137 This defaults to "Latin1" (which is a built-in encoding).
138 .RB "[config file: " textEncoding ]
140 .BI \-eol " unix | dos | mac"
141 Sets the end-of-line convention to use for text output.
142 .RB "[config file: " textEOL ]
144 .BI \-opw " password"
145 Specify the owner password for the PDF file. Providing this will
146 bypass all security restrictions.
148 .BI \-upw " password"
149 Specify the user password for the PDF file.
152 Open xpdf in a full-screen mode, useful for presentations. You may
153 also want to specify '-bg black' (or similar) with this. (There is
154 currently no way to switch between window and full-screen modes on the
158 Start/contact xpdf remote server with specified name (see the
159 .B "REMOTE SERVER MODE"
163 Reload xpdf remote server window (with -remote only).
166 Raise xpdf remote server window (with -remote only).
169 Kill xpdf remote server (with -remote only).
172 Print commands as they're executed (useful for debugging).
173 .RB "[config file: " printCommands ]
176 Don't print any messages or errors.
177 .RB "[config file: " errQuiet ]
179 .BI \-cfg " config-file"
182 in place of ~/.xpdfrc or the system-wide config file.
185 Print copyright and version information.
188 Print usage information.
194 Several other standard X options and resources will work as expected:
196 .BI \-display " display"
197 .RB "[X resource: " xpdf.display ]
202 .RB "[X resource: " xpdf*Foreground ]
207 .RB "[X resource: " xpdf*Background ]
212 .RB "[X resource: " xpdf*fontList ]
214 The color and font options only affect the user interface elements,
215 not the PDF display (the \'paper').
217 The following X resources do not have command line option equivalents:
220 Enables the \'h', \'l', \'k' and \'j' keys for left, right, up, and
223 .SS On-screen controls, at the bottom of the xpdf window
225 .B "left/right arrow buttons"
226 Move to the previous/next page.
228 .B "double left/right arrow buttons"
229 Move backward or forward by ten pages.
231 .B "dashed left/right arrow buttons"
232 Move backward or forward along the history path.
234 .B "\'Page' entry box"
235 Move to a specific page number. Click in the box to activate it, type
236 the page number, then hit return.
239 Change the zoom factor (see the description of the -z option above).
241 .B "binoculars button"
245 Bring up a dialog for generating a PostScript file. The dialog has
246 options to set the pages to be printed and the PostScript file name.
247 The file name can be \'-' for stdout or \'|command' to pipe the
248 PostScript through a command, e.g., \'|lpr'.
251 Bring up the \'about xpdf' window.
254 The space between the \'?' and \'Quit' buttons is used to show the URL
255 or external file name when the mouse is over a link.
261 Pressing the right mouse button will post a popup menu with the
265 Open a new PDF file via a file requester.
267 .B "Open in new window..."
268 Create a new window and open a new PDF file via a file requester.
271 Reload the current PDF file. Note that Xpdf will reload the file
272 automatically (on a page change or redraw) if it has changed since it
276 Save the current file via a file requester.
278 .B "Rotate counterclockwise"
279 Rotate the page 90 degrees counterclockwise.
281 .B "Rotate clockwise"
282 Rotate the page 90 degrees clockwise. The two rotate commands are
283 intended primarily for PDF files where the rotation isn't correctly
284 specified in the file, but they're also useful if your X server
285 doesn't support font rotation.
288 Close the current window. If this is the only open window, the
289 document is closed, but the window is left open (i.e., this menu
290 command won't quit xpdf).
296 If the PDF contains an outline (a.k.a., bookmarks), there will be an
297 outline pane on the left side of the window. The width of the outline
298 pane is adjustable with a vertical split bar via the knob near its
302 Dragging the mouse with the left button held down will highlight an
303 arbitrary rectangle. Any text inside this rectangle will be copied to
304 the X selection buffer.
307 Clicking on a hyperlink will jump to the link's destination. A link
308 to another PDF document will make xpdf load that document. A
309 \'launch' link to an executable program will display a dialog, and if
310 you click \'ok', execute the program. URL links call an external
316 Dragging the mouse with the middle button held down pans the window.
321 Open a new PDF file via a file requester.
324 Reload the current PDF file. Note that Xpdf will reload the file
325 automatically (on a page change or redraw) if it has changed since it
329 Redraw the current page.
332 Close the current window.
338 Find next occurrence.
344 Move to the next page. Scrolls to the top of the page, unless scroll
348 Move to the previous page. Scrolls to the top of the page, unless
349 scroll lock is turned on.
351 .BR <Space> " or " <PageDown> " or " <Next>
352 Scroll down on the current page; if already at bottom, move to next
355 .BR <Backspace> " or " <Delete> " or " <PageUp> " or " <Previous>
356 Scroll up on the current page; if already at top, move to previous
360 Move forward along the history path.
363 Move backward along the history path.
366 Scroll to top of current page.
369 Scroll to bottom of current page.
372 Scroll to first page of document.
375 Scroll to last page of document.
378 Scroll the current page.
381 Activate the page number text field ("goto page").
384 Set the zoom factor to zero (72 dpi).
387 Zoom in (increment the zoom factor by 1).
390 Zoom out (decrement the zoom factor by 1).
393 Set the zoom factor to 'page' (fit page to window).
396 Set the zoom factor to 'width' (fit page width to window).
401 If you want to run xpdf automatically from netscape or mosaic (and
402 probably other browsers) when you click on a link to a PDF file, you
403 need to edit (or create) the files
407 in your home directory. In
420 # Use xpdf to view PDF files.
423 application/pdf; xpdf -q %s
426 Make sure that xpdf is on your executable search path.
428 When you click on a URL link in a PDF file, xpdf will execute the
429 command specified by the urlCommand config file option, replacing an
430 occurrence of \'%s' with the URL. For example, to call netscape with
431 the URL, add this line to your config file:
434 urlCommand "netscape -remote 'openURL(%s)'"
436 .SH "REMOTE SERVER MODE"
437 Xpdf can be started in remote server mode by specifying a server name
438 (in addition to the file name and page number). For example:
441 xpdf -remote myServer file.pdf
444 If there is currently no xpdf running in server mode with the name
445 \'myServer', a new xpdf window will be opened. If another command:
448 xpdf -remote myServer another.pdf 9
451 is issued, a new copy of xpdf will not be started. Instead, the first
452 xpdf (the server) will load
454 and display page nine. If the file name is the same:
457 xpdf -remote myServer another.pdf 4
460 the xpdf server will simply display the specified page.
462 The -raise option tells the server to raise its window; it can be
463 specified with or without a file name and page number.
465 The -quit option tells the server to close its window and exit.
467 The Xpdf tools use the following exit codes:
473 Error opening a PDF file.
476 Error opening an output file.
479 Error related to PDF permissions.
484 The xpdf software and documentation are copyright 1996-2003 Glyph &
495 .B http://www.foolabs.com/xpdf/