📄 xpdfrc.5
字号:
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 psOPI " yes | no"If set to "yes", generates PostScript OPI comments for all images andforms which have OPI information. This option is only available ifthe Xpdf tools were compiled with OPI support. This defaults to "no"..TP.BR psASCIIHex " yes | no"If set to "yes", the ASCIIHexEncode filter will be used instead ofASCII85Encode for binary data. This defaults to "no"..TP.BI psFile " file\-or\-command"Sets the default PostScript file or print command for xpdf. Commandsstart with a \'|' character; anything else is a file. If the filename or command contains spaces it must be quoted. This defaults tounset, which tells xpdf to generate a name of the form <file>.ps for aPDF file <file>.pdf..TP.BI fontDir " dir"See the description above, in the DISPLAY FONTS section..SH TEXT CONTROL.TP.BI textEncoding " encoding\-name"Sets the encoding to use for text output. (This can be overriddenwith the "-enc" switch on the command line.) The.I encoding\-namemust be defined with the unicodeMap command (see above). Thisdefaults to "Latin1"..TP.BR textEOL " unix | dos | mac"Sets the end-of-line convention to use for text output. The optionsare:.nf unix = LF dos = CR+LF mac = CR.fi(This can be overridden with the "-eol" switch on the command line.)The default value is based on the OS where xpdf and pdftotext werebuilt..TP.BR textKeepTinyChars " yes | no"If set to "yes", text extraction will keep all characters. If set to"no", text extraction will discard tiny (smaller than 3 point)characters after the first 20000 per page, avoiding extremely slow runtimes for PDF files that use special fonts to do shading orcross-hatching. This defaults to "no"..SH MISCELLANEOUS SETTINGS.TP.BR initialZoom " -5..5 | page | width"Sets the initial zoom factor. A number (-5 .. 5) specifies a zoomfactor, where 0 means 72 dpi. You may also specify \'page', to fitthe page to the window size, or \'width', to fit the page width to thewindow width..TP.BR t1libControl " none | plain | low | high"Sets the type of font rendering for t1lib (the Type 1 rasterizer) touse. Options are "none" (don't use t1lib at all), "plain" (usenon-anti-aliased fonts), "low" or "high" (use low-level or high-levelanti-aliased fonts). This defaults to "low"..TP.BR freetypeControl " none | plain | low | high"Sets the type of font rendering for FreeType (the TrueType rasterizer)to use. Options are "none" (don't use FreeType at all), "plain" (usenon-anti-aliased fonts), "low" or "high" (use anti-aliased fonts;these two are identical). This defaults to "low"..TP.BI urlCommand " command"Sets the command executed when you click on a URL link. The string"%s" will be replaced with the URL. (See the example below.) Thishas no default value..TP.BI movieCommand " command"Sets the command executed when you click on a movie annotation. Thestring "%s" will be replaced with the movie file name. This has nodefault value..TP.BI mapNumericCharNames " yes | no"If set to "yes", the Xpdf tools will attempt to map various numericcharacter names sometimes used in font subsets. In some cases thisleads to usable text, and in other cases it leads to gibberish --there is no way for Xpdf to tell. This defaults to "yes"..TP.BI printCommands " yes | no"If set to "yes", drawing commands are printed as they're executed(useful for debugging). This defaults to "no"..TP.BI errQuiet " yes | no"If set to "yes", this suppresses all error and warning messages fromall of the Xpdf tools. This defaults to "no"..SH EXAMPLESThe following is a sample xpdfrc file..nf# from the Thai support packagenameToUnicode /usr/local/share/xpdf/Thai.nameToUnicode# from the Japanese support packagecidToUnicode Adobe-Japan1 /usr/local/share/xpdf/Adobe-Japan1.cidToUnicodeunicodeMap JISX0208 /usr/local/share/xpdf/JISX0208.unicodeMapcMapDir Adobe-Japan1 /usr/local/share/xpdf/cmap/Adobe-Japan1# use an X server font for Times-Roman# (this is the built-in default)displayFontX Times-Roman "-*-times-medium-r-normal-*-%s-*-*-*-*-*-iso8859-1" Latin1# use the Base-14 Type 1 fonts from ghostscript# (note that this overrides the displayFontX command above)displayFontT1 Times-Roman /usr/local/share/ghostscript/fonts/n021003l.pfbdisplayFontT1 Times-Italic /usr/local/share/ghostscript/fonts/n021023l.pfbdisplayFontT1 Times-Bold /usr/local/share/ghostscript/fonts/n021004l.pfbdisplayFontT1 Times-BoldItalic /usr/local/share/ghostscript/fonts/n021024l.pfbdisplayFontT1 Helvetica /usr/local/share/ghostscript/fonts/n019003l.pfbdisplayFontT1 Helvetica-Oblique /usr/local/share/ghostscript/fonts/n019023l.pfbdisplayFontT1 Helvetica-Bold /usr/local/share/ghostscript/fonts/n019004l.pfbdisplayFontT1 Helvetica-BoldOblique /usr/local/share/ghostscript/fonts/n019024l.pfbdisplayFontT1 Courier /usr/local/share/ghostscript/fonts/n022003l.pfbdisplayFontT1 Courier-Oblique /usr/local/share/ghostscript/fonts/n022023l.pfbdisplayFontT1 Courier-Bold /usr/local/share/ghostscript/fonts/n022004l.pfbdisplayFontT1 Courier-BoldOblique /usr/local/share/ghostscript/fonts/n022024l.pfbdisplayFontT1 Symbol /usr/local/share/ghostscript/fonts/s050000l.pfbdisplayFontT1 ZapfDingbats /usr/local/share/ghostscript/fonts/d050000l.pfb# from the Japanese support packagedisplayCIDFontX Adobe-Japan1 "-*-fixed-medium-r-normal-*-%s-*-*-*-*-*-jisx0208.1983-0" JISX0208# 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 optionspsPaperSize letterpsDuplex nopsLevel level2psEmbedType1Fonts yespsEmbedTrueTypeFonts yespsFile "| lpr -Pprinter5"# assume that the PostScript printer has the Univers and# Univers-Bold fontspsFont Univers UniverspsFont Univers-Bold Univers-Bold# set the text output optionstextEncoding UTF-8textEOL unix# misc optionst1libControl lowfreetypeControl lowurlCommand "netscape -remove 'openURL(%s)'".fi.SH FILES.TP.B /usr/local/etc/xpdfrcThis is the default location for the system-wide configuration file.Depending on build options, it may be placed elsewhere..TP.B $HOME/.xpdfrcThis is the user's configuration file. If it exists, it will be readin place of the system-wide file..SH AUTHORThe Xpdf software and documentation are copyright 1996-2002 Glyph &Cog, LLC..SH "SEE ALSO".BR xpdf (1),.BR pdftops (1),.BR pdftotext (1),.BR pdfinfo (1),.BR pdftopbm (1),.BR pdfimages (1).br.B http://www.foolabs.com/xpdf/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -