Linux command
xpdf 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Open PDF file
xpdf [document.pdf]
Open at specific page
xpdf [document.pdf] [5]
Set initial zoom
xpdf -z [150] [document.pdf]
Full screen mode
xpdf -fullscreen [document.pdf]
Open with owner password
xpdf -opw [owner_password] [document.pdf]
Reverse video
xpdf -rv [document.pdf]
Remote control mode
xpdf -remote [name] [document.pdf]
说明
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(1), pdftops(1), pdfinfo(1), and pdfimages(1). These are widely used independent of the viewer.
参数
- -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.
- -rv
- Reverse video mode.
- -papercolor _COLOR_
- Paper background color.
- -mattecolor _COLOR_
- Matte color around page area.
- -cfg _FILE_
- Config file.
- -v
- Show version.
- -h
- Show help.
FAQ
What is the xpdf command used for?
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(1), pdftops(1), pdfinfo(1), and pdfimages(1). These are widely used independent of the viewer.
How do I run a basic xpdf example?
Run `xpdf [document.pdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -z _ZOOM_ do in xpdf?
Initial zoom (percent, page, width).