#========================================================================
#
# System-wide xpdfrc file
#
# Xpdf looks for a config file in the following two places:
# 1. ~/.xpdfrc
# 2. /etc/xpdf/xpdfrc
#
# Note that if ~/.xpdfrc exists, Xpdf will NOT read the system
# configuration file /etc/xpdf/xpdfrc. You may wish to include it
# from your ~/.xpdfrc using:
#    include /etc/xpdf/xpdfrc
# and then add additional settings.
#
# For complete details on config file syntax and available options,
# please see the xpdfrc(5) man page.
#
# https://www.xpdfreader.com/
#
#========================================================================

#----- display fonts

# These map a PDF font to a font for display or PostScript output.

#fontFile Ryumin-Light		/usr/share/fonts/truetype/misaki/misaki_mincho.ttf
#fontFile Ryumin-Light-H	/usr/share/fonts/truetype/misaki/misaki_mincho.ttf
#fontFile Ryumin-Light-Identity-H	/usr/share/fonts/truetype/misaki/misaki_mincho.ttf
#fontFile FutoMinA101-Bold-Identity-H	/usr/share/fonts/truetype/misaki/misaki_mincho.ttf

#----- PostScript output control

# Set the default PostScript file or command.

psFile			"|lpr"

# Set the default PostScript paper size -- this can be letter, legal,
# A4, or A3.  You can also specify a paper size as width and height
# (in points). Xpdf uses the paper size in /etc/papersize by default.

#psPaperSize		letter

#----- text output control

# Choose a text encoding for copy-and-paste output.  The Latin1,
# ASCII7, and UTF-8 encodings are built into Xpdf.

#textEncoding		UTF-8

#----- misc settings

# Set the command used to run a web browser when a URL hyperlink is
# clicked.

urlCommand	"sensible-browser '%s'"

# Unbind arrow keys so we can change fullscreen behavior
unbind down any
unbind right any
unbind up any
unbind left any

# Rebind arrow keys to defaults in the windowed context
bind down window scrollDown(16)
bind right window scrollRight(16)
bind up window scrollUp(16)
bind left window scrollLeft(16)

# Bind arrow keys to next/prev page actions in the fullscreen context
bind down fullScreen nextPage
bind right fullScreen nextPage
bind up fullScreen prevPage
bind left fullScreen prevPage
