xpdfrc.cat

来自「source code: Covert TXT to PDF」· CAT 代码 · 共 529 行 · 第 1/2 页

CAT
529
字号
xpdfrc(5)                                               xpdfrc(5)       psEmbedType1Fonts yes | no              If set to "no", prevents embedding of Type 1  fonts              in generated PostScript.  This defaults to "yes".       psEmbedTrueTypeFonts yes | no              If  set  to  "no",  prevents  embedding of TrueType              fonts in generated PostScript.   This  defaults  to              "yes".       psEmbedCIDTrueTypeFonts yes | no              If  set to "no", prevents embedding of CID TrueType              fonts  in  generated  PostScript.   For   Level   3              PostScript,  this  generates  a CID font, for lower              levels it generates a non-CID composite font.       psEmbedCIDPostScriptFonts yes | no              If  set  to  "no",  prevents   embedding   of   CID              PostScript  fonts  in  generated  PostScript.   For              Level 3 PostScript, this generates a CID font,  for              lower levels it generates a non-CID composite font.       psOPI yes | no              If set to "yes", generates PostScript OPI  comments              for  all  images  and forms which have OPI informa-              tion.  This option is only available  if  the  Xpdf              tools   were   compiled  with  OPI  support.   This              defaults to "no".       psASCIIHex yes | no              If set to "yes", the ASCIIHexEncode filter will  be              used  instead  of  ASCII85Encode  for  binary data.              This defaults to "no".       psFile file-or-command              Sets the default PostScript file or  print  command              for  xpdf.   Commands  start  with a '|' character;              anything else is a file.  If the file name or  com-              mand  contains  spaces  it  must  be  quoted.  This              defaults to unset, which tells xpdf to  generate  a              name   of   the  form  <file>.ps  for  a  PDF  file              <file>.pdf.       fontDir dir              See the description above,  in  the  DISPLAY  FONTS              section.TEXT CONTROL       textEncoding encoding-name              Sets  the  encoding  to use for text output.  (This              can be overridden with the  "-enc"  switch  on  the              command  line.)   The encoding-name must be defined              with the  unicodeMap  command  (see  above).   This              defaults to "Latin1".                         05 December 2002                       5xpdfrc(5)                                               xpdfrc(5)       textEOL unix | dos | mac              Sets  the  end-of-line  convention  to use for text              output.  The options are:                  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.       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 run times for PDF files that use special fonts              to  do shading or cross-hatching.  This defaults to              "no".MISCELLANEOUS SETTINGS       initialZoom -5..5 | page | width              Sets the initial zoom factor.  A number (-5  ..  5)              specifies a zoom factor, where 0 means 72 dpi.  You              may also specify 'page', to fit  the  page  to  the              window  size,  or 'width', to fit the page width to              the window width.       t1libControl none | plain | low | high              Sets the type of font rendering for t1lib (the Type              1  rasterizer)  to  use.  Options are "none" (don't              use t1lib at all),  "plain"  (use  non-anti-aliased              fonts),  "low"  or  "high"  (use low-level or high-              level anti-aliased fonts).  This defaults to "low".       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" (use non-anti-              aliased fonts), "low" or "high"  (use  anti-aliased              fonts;  these two are identical).  This defaults to              "low".       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.)  This has no default              value.       movieCommand command              Sets the command executed when you click on a movie              annotation.  The string "%s" will be replaced  with              the movie file name.  This has no default value.                         05 December 2002                       6xpdfrc(5)                                               xpdfrc(5)       mapNumericCharNames yes | no              If set to "yes", the Xpdf tools will attempt to map              various numeric character names sometimes  used  in              font  subsets.   In some cases this leads to usable              text, and in other cases it leads to  gibberish  --              there is no way for Xpdf to tell.  This defaults to              "yes".       printCommands yes | no              If set to "yes", drawing commands  are  printed  as              they're  executed  (useful  for  debugging).   This              defaults to "no".       errQuiet yes | no              If set to "yes",  this  suppresses  all  error  and              warning  messages from all of the Xpdf tools.  This              defaults to "no".EXAMPLES       The following is a sample xpdfrc file.       # 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 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.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       # from the Japanese support package       displayCIDFontX Adobe-Japan1 "-*-fixed-medium-r-normal-*-%s-*-*-*-*-*-jisx0208.1983-0" JISX0208       # use the Bakoma Type 1 fonts                         05 December 2002                       7xpdfrc(5)                                               xpdfrc(5)       # (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 -remove 'openURL(%s)'"FILES       /usr/local/etc/xpdfrc              This is the default location  for  the  system-wide              configuration file.  Depending on build options, it              may be placed elsewhere.       $HOME/.xpdfrc              This is  the  user's  configuration  file.   If  it              exists, it will be read in place of the system-wide              file.AUTHOR       The  Xpdf  software  and   documentation   are   copyright       1996-2002 Glyph & Cog, LLC.SEE ALSO       xpdf(1),     pdftops(1),     pdftotext(1),     pdfinfo(1),       pdftopbm(1), pdfimages(1)       http://www.foolabs.com/xpdf/                         05 December 2002                       8

⌨️ 快捷键说明

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