xpdfrc(5) xpdfrc(5)
NAME
xpdfrc - configuration file for Xpdf tools (version 3.03)
DESCRIPTION
All of the Xpdf tools read a single configuration file. If you have a
.xpdfrc file in your home directory, it will be read. Otherwise, a
system-wide configuration file will be read from /usr/local/etc/xpdfrc,
if it exists. (This is its default location; depending on build
options, it may be placed elsewhere.) On Win32 systems, the xpdfrc
file should be placed in the same directory as the executables.
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.
INCLUDE FILES
include config-file
Includes the specified config file. The effect of this is
equivalent to inserting the contents of config-file directly
into the parent config file in place of the include command.
Config files can be nested arbitrarily deeply.
CHARACTER MAPPING
nameToUnicode map-file
Specifies a file with the mapping from character names to Uni-
code. This is used to handle PDF fonts that have valid encod-
ings but no ToUnicode entry. Each line of a nameToUnicode file
looks like this:
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.
cidToUnicode registry-ordering map-file
Specifies the file with the mapping from character collection to
Unicode. Each line of a cidToUnicode file represents one char-
acter:
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.
unicodeToUnicode font-name-substring map-file
This is used to work around PDF fonts which have incorrect Uni-
code information. It specifies a file which maps from the given
(incorrect) Unicode indexes to the correct ones. The mapping
will be used for any font whose name contains font-name-sub-
string. Each line of a unicodeToUnicode file represents one
Unicode character:
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.
unicodeMap encoding-name map-file
Specifies the file with mapping from Unicode to encoding-name.
These encodings are used for text output (see below). Each line
of a unicodeMap file represents a range of one or more Unicode
characters which maps linearly to a range in the output encod-
ing:
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.
cMapDir registry-ordering dir
Specifies a search directory, dir, for CMaps for the reg-
istry-ordering character collection. There can be multiple
directories for a particular collection. There are no default
CMap directories.
toUnicodeDir dir
Specifies a search directory, dir, for ToUnicode CMaps. There
can be multiple ToUnicode directories. There are no default
ToUnicode directories.
GENERAL FONT CONFIGURATION
fontFile PDF-font-name font-file
Maps a PDF font, PDF-font-name, to a font for display or Post-
Script output. The font file, font-file, can be any type
allowed in a PDF file. This command can be used for 8-bit or
16-bit (CID) fonts.
fontDir dir
Specifies a search directory for font files. There can be mul-
tiple fontDir commands; all of the specified directories will be
searched in order. The font files can be Type 1 (.pfa or .pfb)
or TrueType (.ttf or .ttc); other files in the directory will be
ignored. The font file name (not including the extension) must
exactly match the PDF font name. This search is performed if
the font name doesn't match any of the fonts declared with the
fontFile command. There are no default fontDir directories.
fontFileCC registry-ordering font-file
Maps the registry-ordering character collection to a font for
display or PostScript output. This mapping is used if the font
name doesn't match any of the fonts declared with the fontFile,
fontDir, psResidentFont16, or psResidentFontCC commands.
POSTSCRIPT FONT CONFIGURATION
psFontPassthrough yes | no
If set to "yes", pass 8-bit font names through to the PostScript
output without substitution. Fonts which are not embedded in
the PDF file are expected to be available on the printer. This
defaults to "no".
psResidentFont PDF-font-name PS-font-name
When the 8-bit font PDF-font-name is used (without embedding) in
a PDF file, it will be translated to the PostScript font
PS-font-name, which is assumed to be resident in the printer.
Typically, PDF-font-name and PS-font-name are the same. By
default, only the Base-14 fonts are assumed to be resident.
psResidentFont16 PDF-font-name wMode PS-font-name encoding
When the 16-bit (CID) font PDF-font-name with writing mode wMode
is used (without embedding) in a PDF file, it will be translated
to the PostScript font PS-font-name, which is assumbed to be
resident in the printer. The writing mode must be eith
- 1
- 2
前往页