xpdfrc - configuration file for Xpdf tools (version 3.02)
The xpdfrc file consists of a series of configuration options, one per line. Blank lines and lines starting with a '#' (comments) are ignored.
The following sections list all of the configuration options, sorted into functional groups. There is an examples section at the end.
Note that all settings are case-sensitive; in particular, boolean options are "yes" and "no" (rather than "Yes" or "No").
hex-string name
The hex-string is the Unicode (UCS-2) character index, and name is the corresponding character name. Multiple nameToUnicode files can be used; if a character name is given more than once, the code in the last specified file is used. There is a built-in default nameToUnicode table with all of Adobe's standard character names.
hex-string
The hex-string is the Unicode (UCS-2) index for that character. The first line maps CID 0, the second line CID 1, etc. File size is determined by size of the character collection. Only one file is allowed per character collection; the last specified file is used. There are no built-in cidToUnicode mappings.
in-hex out-hex1 out-hex2 ...
The in-hex field is an input (incorrect) Unicode index, and the rest of the fields are one or more output (correct) Unicode indexes. Each occurrence of in-hex will be converted to the specified output sequence.
in-start-hex in-end-hex out-start-hex
Entries for single characters can be abbreviated to:
in-hex out-hex
The
in-start-hex
and
in-end-hex
fields (or the single
in-hex
field) specify the Unicode range. The
out-start-hex
field (or the
out-hex
field) specifies the start of the output encoding range. The length
of the
out-start-hex
(or
out-hex)
string determines the length of the output characters (e.g., UTF-8
uses different numbers of bytes to represent characters in different
ranges). Entries must be given in increasing Unicode order. Only one
file is allowed per encoding; the last specified file is used. The
Latin1,
ASCII7,
Symbol,
ZapfDingbats,
UTF-8,
and
UCS-2
encodings are predefined.
unix = LF
dos = CR+LF
mac = CR
(This can be overridden with the "-eol" switch on the command line.)
The default value is based on the OS where xpdf and pdftotext were
built.
shift-
ctrl-
alt-
Key
can be a regular ASCII character, or any one of:
space
tab
return
enter
backspace
insert
delete
home
end
pgup
pgdn
left / right / up / down (arrow keys)
f1 .. f35 (function keys)
mousePress1 .. mousePress7 (mouse buttons)
mouseRelease1 .. mouseRelease7 (mouse buttons)
Context
is either "any" or a comma-separated combination of:
fullScreen / window (full screen mode on/off)
continuous / singlePage (continuous mode on/off)
overLink / offLink (mouse over link or not)
scrLockOn / scrLockOff (scroll lock on/off)
The context string can include only one of each pair in the above
list.
Command is an Xpdf command (see the COMMANDS section of the xpdf(1) man page for details). Multiple commands are separated by whitespace.
The bind command replaces any existing binding, but only if it was defined for the exact same modifiers, key, and context. All tokens (modifiers, key, context, commands) are case-sensitive.
Example key bindings:
# bind ctrl-a in any context to the nextPage
# command
bind ctrl-a any nextPage
# bind uppercase B, when in continuous mode
# with scroll lock on, to the reload command
# followed by the prevPage command
bind B continuous,scrLockOn reload prevPage
See the
xpdf(1)
man page for more examples.
# from the Thai support package nameToUnicode /usr/local/share/xpdf/Thai.nameToUnicode # from the Japanese support package cidToUnicode Adobe-Japan1 /usr/local/share/xpdf/Adobe-Japan1.cidToUnicode unicodeMap JISX0208 /usr/local/share/xpdf/JISX0208.unicodeMap cMapDir Adobe-Japan1 /usr/local/share/xpdf/cmap/Adobe-Japan1 # use the Base-14 Type 1 fonts from ghostscript displayFontT1 Times-Roman /usr/local/share/ghostscript/fonts/n021003l.pfb displayFontT1 Times-Italic /usr/local/share/ghostscript/fonts/n021023l.pfb displayFontT1 Times-Bold /usr/local/share/ghostscript/fonts/n021004l.pfb displayFontT1 Times-BoldItalic /usr/local/share/ghostscript/fonts/n021024l.pfb displayFontT1 Helvetica /usr/local/share/ghostscript/fonts/n019003l.pfb displayFontT1 Helvetica-Oblique /usr/local/share/ghostscript/fonts/n019023l.pfb displayFontT1 Helvetica-Bold /usr/local/share/ghostscript/fonts/n019004l.pfb displayFontT1 Helvetica-BoldOblique /usr/local/share/ghostscript/fonts/n019024l.pfb displayFontT1 Courier /usr/local/share/ghostscript/fonts/n022003l.pfb displayFontT1 Courier-Oblique /usr/local/share/ghostscript/fonts/n022023l.pfb displayFontT1 Courier-Bold /usr/local/share/ghostscript/fonts/n022004l.pfb displayFontT1 Courier-BoldOblique /usr/local/share/ghostscript/fonts/n022024l.pfb displayFontT1 Symbol /usr/local/share/ghostscript/fonts/s050000l.pfb displayFontT1 ZapfDingbats /usr/local/share/ghostscript/fonts/d050000l.pfb # use the Bakoma Type 1 fonts # (this assumes they happen to be installed in /usr/local/fonts/bakoma) fontDir /usr/local/fonts/bakoma # set some PostScript options psPaperSize letter psDuplex no psLevel level2 psEmbedType1Fonts yes psEmbedTrueTypeFonts yes psFile "| lpr -Pprinter5" # assume that the PostScript printer has the Univers and # Univers-Bold fonts psFont Univers Univers psFont Univers-Bold Univers-Bold # set the text output options textEncoding UTF-8 textEOL unix # misc options t1libControl low freetypeControl low urlCommand "netscape -remote 'openURL(%s)'"
|
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |