LinuxCommandLibrary

xpdf

Lightweight X11 PDF viewer

TLDR

Open PDF file

$ xpdf [document.pdf]
copy
Open at specific page
$ xpdf [document.pdf] [5]
copy
Set initial zoom
$ xpdf -z [150] [document.pdf]
copy
Full screen mode
$ xpdf -fullscreen [document.pdf]
copy
Open with password
$ xpdf -opw [owner_password] [document.pdf]
copy
Remote control mode
$ xpdf -remote [name] [document.pdf]
copy

SYNOPSIS

xpdf [-z zoom] [-fullscreen] [-opw password] [options] file.pdf [page]

DESCRIPTION

xpdf is a lightweight PDF viewer for X11. It renders PDF documents with minimal resource usage.
The viewer provides basic PDF functionality: navigation, zoom, search, and printing. It handles most standard PDF features.
Remote mode enables control from scripts. Commands sent to the named instance open files, navigate, and control display.
Configuration through ~/.xpdfrc customizes appearance and behavior. Font paths, colors, and key bindings are adjustable.
The xpdf package includes command-line tools: pdftotext, pdftops, pdfinfo, and pdfimages. These are widely used independent of the viewer.

PARAMETERS

-z ZOOM

Initial zoom (percent, page, width).
-fullscreen
Full screen mode.
-opw PASSWORD
Owner password.
-upw PASSWORD
User password.
-remote NAME
Start in remote mode.
-g GEOMETRY
Window geometry.
-papercolor COLOR
Paper background color.
-mattecolor COLOR
Matte color.
-cfg FILE
Config file.
-v
Show version.
-h
Show help.

KEY BINDINGS

n, Space, PgDn

Next page.
p, Backspace, PgUp
Previous page.
+, -
Zoom in/out.
z
Zoom to page.
w
Zoom to width.
/
Search forward.
?
Search backward.
q
Quit.

CAVEATS

Fewer features than Evince or Okular. Some modern PDF features may not render. X11 only. Development slower than alternatives.

HISTORY

xpdf was created by Derek Noonburg starting in 1995. It was one of the first open-source PDF viewers and spawned the Poppler library used by many modern viewers.

SEE ALSO

evince(1), okular(1), mupdf(1), zathura(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community