⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xpdfrc.5

📁 这是一个做pdf阅读器的源代码文件,是大家学习阅读器资料的很好参考
💻 5
📖 第 1 页 / 共 2 页
字号:
long document.  This defaults to "no"..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 textPageBreaks " yes | no"If set to "yes", text extraction will insert page breaks (form feedcharacters) between pages.  This defaults to "yes"..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 50000 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 " \fIpercentage\fR | page | width"Sets the initial zoom factor.  A number specifies a zoom percentage,where 100 means 72 dpi.  You may also specify \'page', to fit the pageto the window size, or \'width', to fit the page width to the windowwidth..TP.BR continuousView " yes | no"If set to "yes", xpdf will start in continuous view mode, i.e., withone vertical screoll bar for the whole document.  This defaults to"no"..TP.BR enableT1lib " yes | no"Enables or disables use of t1lib (a Type 1 font rasterizer).  This isonly relevant if the Xpdf tools were built with t1lib support.("enableT1lib" replaces the old "t1libControl" option.)  This optiondefaults to "yes"..TP.BR enableFreeType " yes | no"Enables or disables use of FreeType (a TrueType / Type 1 fontrasterizer).  This is only relevant if the Xpdf tools were built withFreeType support.  ("enableFreeType" replaces the old"freetypeControl" option.)  This option defaults to "yes"..TP.BR antialias " yes | no"Enables or disables font anti-aliasing in the PDF rasterizer.  Thisoption affects all font rasterizers.  ("antialias" replaces theanti-aliasing control provided by the old "t1libControl" and"freetypeControl" options.)  This default to "yes"..TP.BR vectorAntialias " yes | no"Enables or disables anti-aliasing of vector graphics in the PDFrasterizer.  This defaults to "yes"..TP.BR strokeAdjust " yes | no"Enables or disables stroke adjustment.  This defaults to "yes"..TP.BR screenType " dispersed | clustered | stochasticClustered"Sets the halftone screen type, which will be used when generating amonochrome (1-bit) bitmap.  The three options are dispersed-dotdithering, clustered-dot dithering (with a round dot and 45-degreescreen angle), and stochastic clustered-dot dithering.  By default,"stochasticClustered" is used for resolutions of 300 dpi and higher,and "dispersed" is used for resolutions lower then 300 dpi..TP.BI screenSize " integer"Sets the size of the (square) halftone screen threshold matrix.  Bydefault, this is 4 for dispersed-dot dithering, 10 for clustered-dotdithering, and 100 for stochastic clustered-dot dithering..TP.BI screenDotRadius " integer"Sets the halftone screen dot radius.  This is only used whenscreenType is set to stochasticClustered, and it defaults to 2.  Inclustered-dot mode, the dot radius is half of the screen size.Dispersed-dot dithering doesn't have a dot radius..TP.BI screenGamma " float"Sets the halftone screen gamma correction parameter.  Gamma valuesgreater than 1 make the output brighter; gamma values less than 1 makeit darker.  The default value is 1..TP.BI screenBlackThreshold " float"When halftoning, all values below this threshold are forced to solidblack.  This parameter is a floating point value between 0 (black) and1 (white).  The default value is 0..TP.BI screenWhiteThreshold " float"When halftoning, all values above this threshold are forced to solidwhite.  This parameter is a floating point value between 0 (black) and1 (white).  The default value is 1..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 mapUnknownCharNames " yes | no"If set to "yes", and mapNumericCharNames is set to "no", the Xpdftools will apply a simple pass-through mapping (Unicode index =character code) for all unrecognized glyph names.  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 "no"..TP.BI bind " modifiers-key context command ..."Add a key or mouse button binding..I Modifierscan be zero or more of:.nf    shift-    ctrl-    alt-.fi.I Keycan be a regular ASCII character, or any one of:.nf    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).fi.I Contextis either "any" or a comma-separated combination of:.nf    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).fiThe context string can include only one of each pair in the abovelist..I Commandis an Xpdf command (see the COMMANDS section of the.BR xpdf (1)man page for details).  Multiple commands are separated by whitespace.The bind command replaces any existing binding, but only if it wasdefined for the exact same modifiers, key, and context.  All tokens(modifiers, key, context, commands) are case-sensitive.Example key bindings:.nf    # 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.fiSee the.BR xpdf (1)man page for more examples..TP.BI unbind " modifiers-key context"Removes a key binding established with the bind command.  This is mostuseful to remove default key bindings before establishing new ones(e.g., if the default key binding is given for "any" context, and youwant to create new key bindings for multiple contexts)..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 the Base-14 Type 1 fonts from ghostscriptdisplayFontT1 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# 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 -remote '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-2007 Glyph &Cog, LLC..SH "SEE ALSO".BR xpdf (1),.BR pdftops (1),.BR pdftotext (1),.BR pdfinfo (1),.BR pdftoppm (1),.BR pdfimages (1).br.B http://www.foolabs.com/xpdf/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -