home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / ftp.vapor.com / voyager / vpdf / Apdf_common.lha / Apdf / doc.orig / xpdf.cat < prev   
Encoding:
Text File  |  2000-04-06  |  14.1 KB  |  529 lines

  1.  
  2.  
  3.  
  4. xpdf(1)                                                   xpdf(1)
  5.  
  6.  
  7. NAME
  8.        xpdf  -  Portable  Document Format (PDF) file viewer for X
  9.        (version 0.90)
  10.  
  11. SYNOPSIS
  12.        xpdf [options] [PDF-file [page]]
  13.  
  14. DESCRIPTION
  15.        Xpdf is a viewer for Portable Document Format (PDF) files.
  16.        (These  are  also  sometimes  also called 'Acrobat' files,
  17.        from the name of Adobe's PDF software.)  Xpdf  runs  under
  18.        the X Window System on UNIX, VMS, and OS/2.
  19.  
  20.        To run xpdf, simply type:
  21.  
  22.               xpdf file.pdf
  23.  
  24.        where  file.pdf  is  your  PDF file.  The file name can be
  25.        followed by a number specifying the page which  should  be
  26.        displayed first, e.g.:
  27.  
  28.               xpdf file.pdf 18
  29.  
  30.        You can also start xpdf without opening any files:
  31.  
  32.               xpdf
  33.  
  34. OPTIONS
  35.        X  resources are listed in square brackets with the corre-
  36.        sponding option.
  37.  
  38.        -err   Send error messages to /dev/tty instead  of  stderr
  39.               (useful  if  xpdf  is started from another applica-
  40.               tion, e.g., netscape which  otherwise  pops  up  an
  41.               annoying little window for every error).
  42.  
  43.        -z zoom
  44.               Set  the  initial  zoom factor.  A number (-5 .. 5)
  45.               specifies a zoom factor, where 0 means 72 dpi.  You
  46.               may  also  specify  'page',  to fit the page to the
  47.               window size, or 'width', to fit the page  width  to
  48.               the window width.  [xpdf.initialZoom]
  49.  
  50.        -g geometry
  51.               Set the initial  window  geometry.   (-geometry  is
  52.               equivalent.)  [xpdf.geometry]
  53.  
  54.        -remote name
  55.               Start/contact  xpdf  remote  server  with specified
  56.               name (see the REMOTE SERVER MODE section below).
  57.  
  58.        -raise Raise  xpdf  remote  server  window  (with  -remote
  59.               only).
  60.  
  61.  
  62.  
  63.  
  64.                            02 Aug 1999                          1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. xpdf(1)                                                   xpdf(1)
  71.  
  72.  
  73.        -quit  Kill xpdf remote server (with -remote only).
  74.  
  75.        -cmap  Install a private colormap.   This  is  ignored  on
  76.               TrueColor visuals.  [xpdf.installCmap]
  77.  
  78.        -rgb number
  79.               Set the size of largest RGB cube xpdf will  try  to
  80.               allocate.  The default is 5 (for a 5x5x5 cube); set
  81.               to  a  smaller  number  to  conserve  color   table
  82.               entries.   This  is  ignored with private colormaps
  83.               and on TrueColor visuals.
  84.  
  85.        -papercolor color
  86.               Set the "paper color", i.e., the background of  the
  87.               page display.  This will not work too well with PDF
  88.               files that do things like filling in  white  behind
  89.               the text.  [xpdf.paperColor]
  90.  
  91.        -eucjp When copying text, convert Japanese text to EUC-JP.
  92.               This  is  currently  the only option for converting
  93.               Japanese text -- the only effect is  to  switch  to
  94.               7-bit  ASCII for non-Japanese text, in order to fit
  95.               into the EUC-JP encoding.   (This  option  is  only
  96.               available  if  pdftotext was compiled with Japanese
  97.               support.)  [xpdf.eucjp]
  98.  
  99.        -t1lib font-type
  100.               Set the type of font rendering for t1lib (the  Type
  101.               1  rasterizer)  to  use.  Options are 'none' (don't
  102.               use t1lib at all),  'plain'  (use  non-anti-aliased
  103.               fonts),  'low'  or  'high'  (use low-level or high-
  104.               level anti-aliased fonts).  [xpdf.t1libControl]
  105.  
  106.        -ps PS-file
  107.               Set  the  default  file name for PostScript output.
  108.               This can also be of the form '|command' to pipe the
  109.               PostScript through a command.  [xpdf.psFile]
  110.  
  111.        -paperw size
  112.               Set  the  paper  width,  in points.  [xpdf.psPaper-
  113.               Width]
  114.  
  115.        -paperh size
  116.               Set the paper height,  in  points.   [xpdf.psPaper-
  117.               Height]
  118.  
  119.        -level1
  120.               Generate   Level   1   PostScript.   The  resulting
  121.               PostScript files will be significantly  larger  (if
  122.               they  contain  images),  but  will print on Level 1
  123.               printers.  This also converts all images  to  black
  124.               and white.  [xpdf.psLevel1]
  125.  
  126.        -cmd   Print  commands  as  they're  executed  (useful for
  127.  
  128.  
  129.  
  130.                            02 Aug 1999                          2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. xpdf(1)                                                   xpdf(1)
  137.  
  138.  
  139.               debugging).
  140.  
  141.        -q     Don't print any messages or errors.
  142.  
  143.        -h     Print usage information.  (-help is equivalent.)
  144.  
  145.        Several other standard X options and resources  will  work
  146.        as expected:
  147.  
  148.        -display display
  149.               [xpdf.display]
  150.  
  151.        -fg color
  152.               (-foreground is equivalent.)  [xpdf.foreground]
  153.  
  154.        -bg color
  155.               (-background is equivalent.)  [xpdf.background]
  156.  
  157.        -font font
  158.               (-fn is equivalent.)  [xpdf.font]
  159.  
  160.        The color and font options only affect the user  interface
  161.        elements, not the PDF display (the 'paper').
  162.  
  163.        The  following X resources do not have command line option
  164.        equivalents:
  165.  
  166.        xpdf.urlCommand
  167.               Set the command executed when you click  on  a  URL
  168.               link.   See  the  WEB  BROWSERS  section  below for
  169.               details.
  170.  
  171.        xpdf.japaneseFont
  172.               Sets the X font name pattern to  use  for  Japanese
  173.               text.  The default is:
  174.  
  175.               -*-fixed-medium-r-nor-
  176.               mal-*-%s-*-*-*-*-*-jisx0208.1983-0
  177.  
  178.        xpdf.viKeys
  179.               Enables the 'h', 'l', 'k' and 'j'  keys  for  left,
  180.               right, up, and down scrolling.
  181.  
  182.        The  following  resources set the file names of the Type 1
  183.        fonts to use for the Base 14 fonts:
  184.  
  185.               xpdf.t1TimesRoman
  186.               xpdf.t1TimesItalic
  187.               xpdf.t1TimesBold
  188.               xpdf.t1TimesBoldItalic
  189.               xpdf.t1Helvetica
  190.               xpdf.t1HelveticaOblique
  191.               xpdf.t1HelveticaBold
  192.               xpdf.t1HelveticaBoldOblique
  193.  
  194.  
  195.  
  196.                            02 Aug 1999                          3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. xpdf(1)                                                   xpdf(1)
  203.  
  204.  
  205.               xpdf.t1Courier
  206.               xpdf.t1CourierOblique
  207.               xpdf.t1CourierBold
  208.               xpdf.t1CourierBoldOblique
  209.               xpdf.t1Symbol
  210.               xpdf.t1ZapfDingbats
  211.  
  212.        If t1lib is enabled, these  Type  1  fonts  will  be  used
  213.        instead of X server fonts.
  214.  
  215. CONTROLS
  216.    On-screen controls, at the bottom of the xpdf window
  217.        left/right arrow buttons
  218.               Move to the previous/next page.
  219.  
  220.        double left/right arrow buttons
  221.               Move backward or forward by ten pages.
  222.  
  223.        dashed left/right arrow buttons
  224.               Move backward or forward along the history path.
  225.  
  226.        'Page' entry box
  227.               Move  to  a specific page number.  Click in the box
  228.               to activate it, type  the  page  number,  then  hit
  229.               return.
  230.  
  231.        zoom popup menu
  232.               Change  the zoom factor (see the description of the
  233.               -z option above).
  234.  
  235.        binoculars button
  236.               Find a text string.
  237.  
  238.        print button
  239.               Bring up a dialog for generating a PostScript file.
  240.               The  dialog  has  options  to  set  the pages to be
  241.               printed and the PostScript  file  name.   The  file
  242.               name  can  be  '-' for stdout or '|command' to pipe
  243.               the PostScript through a command, e.g., '|lpr'.
  244.  
  245.        '?' button
  246.               Bring up the 'about xpdf' window.
  247.  
  248.        link info
  249.               The space between the '?'  and  'Quit'  buttons  is
  250.               used to show the URL or external file name when the
  251.               mouse is over a link.
  252.  
  253.        'Quit' button
  254.               Quit xpdf.
  255.  
  256.  
  257.    Menu
  258.        Pressing the right mouse button will  post  a  popup  menu
  259.  
  260.  
  261.  
  262.                            02 Aug 1999                          4
  263.  
  264.  
  265.  
  266.  
  267.  
  268. xpdf(1)                                                   xpdf(1)
  269.  
  270.  
  271.        with the following commands:
  272.  
  273.        Open...
  274.               Open a new PDF file via a file requester.
  275.  
  276.        Save PDF...
  277.               Save the current file via a file requester.
  278.  
  279.        Rotate left
  280.               Rotate the page 90 degrees counterclockwise.
  281.  
  282.        Rotate right
  283.               Rotate  the  page  90  degrees  clockwise.  The two
  284.               rotate commands  are  intended  primarily  for  PDF
  285.               files  where the rotation isn't correctly specified
  286.               in the file, but they're  also  useful  if  your  X
  287.               server doesn't support font rotation.
  288.  
  289.        Quit   Quit xpdf.
  290.  
  291.  
  292.    Text selection
  293.        Dragging  the  mouse  with  the left button held down will
  294.        highlight an arbitrary rectangle.  Any  text  inside  this
  295.        rectangle will be copied to the X selection buffer.
  296.  
  297.  
  298.    Links
  299.        Clicking  on  a hyperlink will jump to the link's destina-
  300.        tion.  A link to another PDF document will make xpdf  load
  301.        that  document.   A 'launch' link to an executable program
  302.        will display a dialog, and if you click 'ok', execute  the
  303.        program.   URL links call an external command (see the WEB
  304.        BROWSERS section below).
  305.  
  306.  
  307.    Panning
  308.        Dragging the mouse with the middle button held  down  pans
  309.        the window.
  310.  
  311.  
  312.    Key bindings
  313.        o      Open a new PDF file via a file requester.
  314.  
  315.        f      Find a text string.
  316.  
  317.        n      Move to the next page.
  318.  
  319.        p      Move to the previous page.
  320.  
  321.        <Space> or <PageDown> or <Next>
  322.               Scroll down on the current page; if already at bot-
  323.               tom, move to next page.
  324.  
  325.  
  326.  
  327.  
  328.                            02 Aug 1999                          5
  329.  
  330.  
  331.  
  332.  
  333.  
  334. xpdf(1)                                                   xpdf(1)
  335.  
  336.  
  337.        <Backspace> or <Delete> or <PageUp> or <Previous>
  338.               Scroll up on the current page; if already  at  top,
  339.               move to previous page.
  340.  
  341.        <Home> Scroll to top of current page.
  342.  
  343.        <End>  Scroll to bottom of current page.
  344.  
  345.        arrows Scroll the current page.
  346.  
  347.        control-L
  348.               Redraw the current page.
  349.  
  350.        q      Quit xpdf.
  351.  
  352. WEB BROWSERS
  353.        If  you  want  to  run xpdf automatically from netscape or
  354.        mosaic (and probably other browsers) when you click  on  a
  355.        link to a PDF file, you need to edit (or create) the files
  356.        .mime.types and  .mailcap  in  your  home  directory.   In
  357.        .mime.types add the line:
  358.  
  359.               application/pdf pdf
  360.  
  361.        In .mailcap add the lines:
  362.  
  363.               # Use xpdf to view PDF files.
  364.               application/pdf; xpdf -err %s
  365.  
  366.        Make sure that xpdf is on your executable search path.
  367.  
  368.        When you click on a URL link in a PDF file, xpdf will exe-
  369.        cute  the  command  specified   by   the   xpdf.urlCommand
  370.        resource,  replacing  an  occurrence of '%s' with the URL.
  371.        For example, to call  netscape  with  the  URL,  use  this
  372.        resource setting:
  373.  
  374.               xpdf.urlCommand: netscape -remote 'openURL(%s)'
  375.  
  376. REMOTE SERVER MODE
  377.        Xpdf  can be started in remote server mode by specifying a
  378.        server name (in addition to the file name  and  page  num-
  379.        ber).  For example:
  380.  
  381.               xpdf -remote myServer file.pdf
  382.  
  383.        If  there is currently no xpdf running in server mode with
  384.        the name 'myServer', a new xpdf window will be opened.  If
  385.        another command:
  386.  
  387.               xpdf -remote myServer another.pdf 9
  388.  
  389.        is  issued,  a  new  copy  of  xpdf  will  not be started.
  390.        Instead, the first xpdf (the server) will load another.pdf
  391.  
  392.  
  393.  
  394.                            02 Aug 1999                          6
  395.  
  396.  
  397.  
  398.  
  399.  
  400. xpdf(1)                                                   xpdf(1)
  401.  
  402.  
  403.        and display page nine.  If the file name is the same:
  404.  
  405.               xpdf -remote myServer another.pdf 4
  406.  
  407.        the xpdf server will simply display the specified page.
  408.  
  409.        The -raise option tells the server to raise its window; it
  410.        can be specified with or without a file name and page num-
  411.        ber.
  412.  
  413.        The  -quit option tells the server to close its window and
  414.        exit.
  415.  
  416. CONFIGURATION FILE
  417.        Xpdf will read a file called .xpdfrc from your home direc-
  418.        tory  (if  it exists).  This file can contain two types of
  419.        entries.
  420.  
  421.        fontpath directory
  422.               Look for Type 1 fonts in directory.  Xpdf uses this
  423.               only  to  get  the font encoding.  For display, the
  424.               font must also be mapped with a fontmap entry.
  425.  
  426.        fontmap PDF-font X-font
  427.               Map PDF-font (as referenced in a PDF  file)  to  X-
  428.               font,  which should be a standard X font descriptor
  429.               with '%s' in the pixel size position.
  430.  
  431.        For example, use:
  432.  
  433.               fontmap       TimesCE-Roman        -*-times-medium-
  434.               r-*-*-%s-*-*-*-*-*-iso8859-2
  435.  
  436.        to  map  the  Central  European  (Latin-2)  version of the
  437.        Times-Roman font.  This assumes that you've installed  the
  438.        appropriate  X fonts (see mkfontdir(1)).  Xpdf knows about
  439.        the ISO8859-2 encoding, so you don't need a fontpath entry
  440.        for these fonts.  To use the Bakoma Type 1 fonts, do this:
  441.  
  442.               fontpath /home/derekn/fonts/bakoma
  443.               fontmap      cmb10      -bakoma-cmb10-medium-r-nor-
  444.               mal--%s-*-*-*-p-*-adobe-fontspecific
  445.               fontmap    cmbsy10    -bakoma-cmbsy10-medium-r-nor-
  446.               mal--%s-*-*-*-p-*-adobe-fontspecific
  447.               etc...
  448.  
  449.        This assumes that the Type 1 font files are  available  in
  450.        the directory /home/derekn/fonts/bakoma.
  451.  
  452. BUGS
  453.        No support for TrueType and Type 3 fonts.
  454.  
  455. AUTHOR
  456.        The   xpdf   software   and  documentation  are  copyright
  457.  
  458.  
  459.  
  460.                            02 Aug 1999                          7
  461.  
  462.  
  463.  
  464.  
  465.  
  466. xpdf(1)                                                   xpdf(1)
  467.  
  468.  
  469.        1996-1999 Derek B. Noonburg (derekn@foolabs.com).
  470.  
  471. SEE ALSO
  472.        pdftops(1), pdftotext(1), pdfinfo(1), pdftopbm(1),  pdfim-
  473.        ages(1)
  474.        http://www.foolabs.com/xpdf/
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.                            02 Aug 1999                          8
  527.  
  528.  
  529.