📄 xpdfrc.5
字号:
.\" Copyright 2002-2007 Glyph & Cog, LLC.TH xpdfrc 5 "27 February 2007".SH NAMExpdfrc \- configuration file for Xpdf tools (version 3.02).SH DESCRIPTIONAll of the Xpdf tools read a single configuration file. If you have a.I .xpdfrcfile in your home directory, it will be read. Otherwise, asystem-wide configuration file will be read from.IR /usr/local/etc/xpdfrc ,if it exists. (This is its default location; depending on buildoptions, it may be placed elsewhere.) On Win32 systems, the.I xpdfrcfile should be placed in the same directory as the executables..PPThe xpdfrc file consists of a series of configuration options, oneper line. Blank lines and lines starting with a \'#' (comments) areignored..PPThe following sections list all of the configuration options, sortedinto functional groups. There is an examples section at the end..SH INCLUDE FILES.TP.BI include " config\-file"Includes the specified config file. The effect of this is equivalentto inserting the contents of.I config\-filedirectly into the parent config file in place of the.I includecommand. Config files can be nested arbitrarily deeply..SH CHARACTER MAPPING.TP.BI nameToUnicode " map\-file"Specifies a file with the mapping from character names to Unicode.This is used to handle PDF fonts that have valid encodings but noToUnicode entry. Each line of a nameToUnicode file looks like this:.I " " hex\-string nameThe.I hex\-stringis the Unicode (UCS-2) character index, and.I nameis the corresponding character name. Multiple nameToUnicode files canbe used; if a character name is given more than once, the code in thelast specified file is used. There is a built-in defaultnameToUnicode table with all of Adobe's standard character names..TP.BI cidToUnicode " registry\-ordering map\-file"Specifies the file with the mapping from character collection toUnicode. Each line of a cidToUnicode file represents one character:.I " " hex\-stringThe.I hex\-stringis the Unicode (UCS-2) index for that character. The first line mapsCID 0, the second line CID 1, etc. File size is determined by size ofthe character collection. Only one file is allowed per charactercollection; the last specified file is used. There are no built-incidToUnicode mappings..TP.BI unicodeToUnicode " font\-name\-substring map\-file"This is used to work around PDF fonts which have incorrect Unicodeinformation. It specifies a file which maps from the given(incorrect) Unicode indexes to the correct ones. The mapping will beused for any font whose name contains.IR font\-name\-substring .Each line of a unicodeToUnicode file represents one Unicode character:.RI " " in\-hex " " out\-hex1 " " out\-hex2 " ..."The.I in\-hexfield is an input (incorrect) Unicode index, and the rest of thefields are one or more output (correct) Unicode indexes. Eachoccurrence of.I in\-hexwill be converted to the specified output sequence..TP.BI unicodeMap " encoding\-name map\-file"Specifies the file with mapping from Unicode to.IR encoding\-name .These encodings are used for X display fonts and text output (seebelow). Each line of a unicodeMap file represents a range of one ormore Unicode characters which maps linearly to a range in the outputencoding:.nf.I " " in\-start\-hex in\-end\-hex out\-start\-hex.fiEntries for single characters can be abbreviated to:.nf.I " " in\-hex out\-hex.fiThe.I in\-start\-hexand.I in\-end\-hexfields (or the single.I in\-hexfield) specify the Unicode range. The.I out\-start\-hexfield (or the.I out\-hexfield) specifies the start of the output encoding range. The lengthof the.I out\-start\-hex(or.IR out\-hex )string determines the length of the output characters (e.g., UTF-8uses different numbers of bytes to represent characters in differentranges). Entries must be given in increasing Unicode order. Only onefile is allowed per encoding; the last specified file is used. The.IR Latin1 ,.IR ASCII7 ,.IR Symbol ,.IR ZapfDingbats ,.IR UTF-8 ,and.I UCS-2encodings are predefined..TP.BI cMapDir " registry\-ordering dir"Specifies a search directory,.IR dir ,for CMaps for the.I registry\-orderingcharacter collection. There can be multiple directories for aparticular collection. There are no default CMap directories..TP.BI toUnicodeDir " dir"Specifies a search directory,.IR dir ,for ToUnicode CMaps. There can be multiple ToUnicode directories.There are no default ToUnicode directories..SH DISPLAY FONTS.TP.BI displayFontT1 " PDF\-font\-name T1\-file"Maps a PDF font,.IR PDF\-font\-name ,to a Type 1 font for display. The Type 1 font file,.IR T1\-file ,should be a standard .pfa or .pfb file..TP.BI displayFontTT " PDF\-font\-name TT\-file"Maps a PDF font,.IR PDF\-font\-name ,to a TrueType font for display. The TrueType font file,.IR TT\-file ,should be a standard .ttf file..TP.BI displayNamedCIDFontT1 " PDF\-font\-name T1\-file"Maps a specific PDF CID (16-bit) font,.IR PDF\-font\-name ,to a CID font (16-bit PostScript font), for display. There are nodefault CID font mappings..TP.BI displayCIDFontT1 " registry\-ordering T1\-file"Maps the.I registry\-orderingcharacter collection to a CID font (16-bit PostScript font), fordisplay. This mapping is used if the font name doesn't match any ofthe fonts declared with displayNamedCIDFont* commands. There are nodefault CID font mappings..TP.BI displayNamedCIDFontTT " PDF\-font\-name TT\-file"Maps a specific PDF CID (16-bit) font,.IR PDF\-font\-name ,to a (16-bit) TrueType font, for display. There are no default CIDfont mappings..TP.BI displayCIDFontTT " registry\-ordering TT\-file"Maps the.I registry\-orderingcharacter collection to a (16-bit) TrueType font, for display. Thismapping is used if the font name doesn't match any of the fontsdeclared with displayNamedCIDFont* commands. There are no default CIDfont mappings..TP.BI fontDir " dir"Specifies a search directory for external font files. There can bemultiple fontDir directories. If a PDF file uses a font but doesn'tembed it, these directories will be searched for a matching font file.These fonts are used by both xpdf (for display) and pdftops (forembedding in the generated PostScript). Type 1 fonts must have asuffix of ".pfa", ".pfb", ".ps", or no suffix at all. TrueType fontsmust have a ".ttf" suffix. Other files in these directories will beignored. There are no default fontDir directories..SH POSTSCRIPT CONTROL.TP.BI psPaperSize " width(pts) height(pts)"Sets the paper size for PostScript output. The.I widthand.I heightparameters give the paper size in PostScript points (1 point = 1/72inch)..TP.BR psPaperSize " letter | legal | A4 | A3 | match"Sets the paper size for PostScript output to a standard size. Thedefault paper size is set when xpdf and pdftops are built, typicallyto "letter" or "A4". This can also be set to "match", which will setthe paper size to match the size specified in the PDF file..TP.BR psImageableArea " llx lly urx ury"Sets the imageable area for PostScript output. The four integers arethe coordinates of the lower-left and upper-right corners of theimageable region, specified in points (with the origin being thelower-left corner of the paper). This defaults to the full papersize; the psPaperSize option will reset the imageable areacoordinates..TP.BR psCrop " yes | no"If set to "yes", PostScript output is cropped to the CropBox specifiedin the PDF file; otherwise no cropping is done. This defaults to"yes"..TP.BR psExpandSmaller " yes | no"If set to "yes", PDF pages smaller than the PostScript imageable areaare expanded to fill the imageable area. Otherwise, no scalling isdone on smaller pages. This defaults to "no"..TP.BR psShrinkLarger " yes | no"If set to yes, PDF pages larger than the PostScript imageable area areshrunk to fit the imageable area. Otherwise, no scaling is done onlarger pages. This defaults to "yes"..TP.BR psCenter " yes | no"If set to yes, PDF pages smaller than the PostScript imageable area(after any scaling) are centered in the imageable area. Otherwise,they are aligned at the lower-left corner of the imageable area. Thisdefaults to "yes"..TP.BR psDuplex " yes | no"If set to "yes", the generated PostScript will set the "Duplex"pagedevice entry. This tells duplex-capable printers to enableduplexing. This defaults to "no"..TP.BR psLevel " level1 | level1sep | level2 | level2sep | level3 | level3Sep"Sets the PostScript level to generate. This defaults to "level2"..TP.BI psFont " PDF\-font\-name PS\-font\-name"When the.I PDF\-font\-namefont is used in a PDF file, it will be translated to the PostScriptfont.IR PS\-font\-name ,which is assumed to be resident in the printer. Typically,.I PDF\-font\-nameand.I PS\-font\-nameare the same. By default, only the Base-14 fonts are assumed to beresident..TP.BI psNamedFont16 " PDF\-font\-name wMode PS\-font\-name encoding"When the 16-bit font.I PDF\-font\-nameis used in a PDF file with the.I wModewriting mode and is not embedded, the.I PS\-font\-namefont is substituted for it. The writing mode must be either \'H' forhorizontal or \'V' for vertical. The.I PS\-font\-namefont is assumed to be resident in the printer and to use the specifiedencoding (which must have been defined with the unicodeMap command)..TP.BI psFont16 " registry\-ordering wMode PS\-font\-name encoding"When a 16-bit font using the.I registry\-orderingcharacter collection and .I wModewriting mode is not embedded and does not match any of the fontsdeclared in psNamedFont16 commands, the.I PS\-font\-namefont is substituted for it. The writing mode must be either \'H' forhorizontal or \'V' for vertical. The.I PS\-font\-namefont is assumed to be resident in the printer and to use the specifiedwriting mode and encoding (which must have been defined with theunicodeMap command)..TP.BR psEmbedType1Fonts " yes | no"If set to "no", prevents embedding of Type 1 fonts in generatedPostScript. This defaults to "yes"..TP.BR psEmbedTrueTypeFonts " yes | no"If set to "no", prevents embedding of TrueType fonts in generatedPostScript. This defaults to "yes"..TP.BR psEmbedCIDTrueTypeFonts " yes | no"If set to "no", prevents embedding of CID TrueType fonts in generatedPostScript. For Level 3 PostScript, this generates a CID font, forlower levels it generates a non-CID composite font..TP.BR psEmbedCIDPostScriptFonts " yes | no"If set to "no", prevents embedding of CID PostScript fonts ingenerated PostScript. For Level 3 PostScript, this generates a CIDfont, for lower levels it generates a non-CID composite font..TP.BR psPreload " yes | no"If set to "yes", PDF forms are converted to PS procedures, and imagedata is preloaded. This uses more memory in the PostScriptinterpreter, but generates significantly smaller PS files insituations where, e.g., the same image is drawn on every page of a
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -