home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -in_the_mag- / graphics / xpdf5 / xpdf.hlp < prev    next >
Text File  |  1998-05-13  |  11KB  |  325 lines

  1. ! Generated automatically by mantohlp
  2. 1 xpdf
  3.  
  4.        xpdf  -  Portable  Document Format (PDF) file viewer for X
  5.        (version 0.7a)
  6.  
  7.        xpdf [options] [PDF-file [page]]
  8.  
  9.        Xpdf is a viewer for Portable Document Format (PDF) files.
  10.        (These  are  also  sometimes  also called 'Acrobat' files,
  11.        from the name of Adobe's PDF software.)  Xpdf  runs  under
  12.        the X Window System on UNIX, VMS, and OS/2.
  13.  
  14.        To run xpdf, simply type:
  15.  
  16.               xpdf file.pdf
  17.  
  18.        where  file.pdf  is  your  PDF file.  The file name can be
  19.        followed by a number specifying the page which  should  be
  20.        displayed first, e.g.:
  21.  
  22.               xpdf file.pdf 18
  23.  
  24.        You can also start xpdf without opening any files:
  25.  
  26.               xpdf
  27.  
  28. 2 OPTIONS
  29.  
  30.        X  resources are listed in square brackets with the corre-
  31.        sponding option.
  32.  
  33.        -err   Send error messages to /dev/tty instead  of  stderr
  34.               (useful  if  xpdf  is started from another applica-
  35.               tion, e.g., netscape which  otherwise  pops  up  an
  36.               annoying little window for every error).
  37.  
  38.        -z number
  39.               Set  the initial zoom factor (-5 .. 5).  [xpdf.ini-
  40.               tialZoom]
  41.  
  42.        -g geometry
  43.               Set the initial  window  geometry.   (-geometry  is
  44.               equivalent.)  [xpdf.geometry]
  45.  
  46.        -remote name
  47.               Start/contact  xpdf  remote  server  with specified
  48.               name (see the REMOTE SERVER MODE section below).
  49.  
  50.        -raise Raise  xpdf  remote  server  window  (with  -remote
  51.               only).
  52.  
  53.        -quit  Kill xpdf remote server (with -remote only).
  54.  
  55.        -cmap  Install  a  private  colormap.   This is ignored on
  56.               TrueColor visuals.  [xpdf.installCmap]
  57.  
  58.        -rgb number
  59.               Set the size of largest RGB cube xpdf will  try  to
  60.               allocate.  The default is 5 (for a 5x5x5 cube); set
  61.               to  a  smaller  number  to  conserve  color   table
  62.               entries.   This  is  ignored with private colormaps
  63.               and on TrueColor visuals.
  64.  
  65.        -ps PS-file
  66.               Set the default file name  for  PostScript  output.
  67.               This can also be of the form '|command' to pipe the
  68.               PostScript through a command.  [xpdf.psFile]
  69.  
  70.        -level1
  71.               Generate  Level  1   PostScript.    The   resulting
  72.               PostScript  files  will be significantly larger (if
  73.               they contain images), but will  print  on  Level  1
  74.               printers.   This  also converts all images to black
  75.               and white.  [xpdf.psLevel1]
  76.  
  77.        -cmd   Print commands  as  they're  executed  (useful  for
  78.               debugging).
  79.  
  80.        -h     Print usage information.  (-help is equivalent.)
  81.  
  82.        Several  other  standard X options and resources will work
  83.  
  84.        as expected:
  85.  
  86.        -display display
  87.               [xpdf.display]
  88.  
  89.        -fg color
  90.               (-foreground is equivalent.)  [xpdf.foreground]
  91.  
  92.        -bg color
  93.               (-background is equivalent.)  [xpdf.background]
  94.  
  95.        -font font
  96.               (-fn is equivalent.)  [xpdf.font]
  97.  
  98.        The color and font options only affect the user  interface
  99.        elements, not the PDF display (the 'paper').
  100.  
  101.        The  following X resources do not have command line option
  102.        equivalents:
  103.  
  104.        xpdf.urlCommand
  105.               Set the command executed when you click  on  a  URL
  106.               link.   See  the  WEB  BROWSERS  section  below for
  107.               details.
  108.  
  109. 2 CONTROLS
  110.  
  111.    On-screen controls, at the bottom of the xpdf window
  112.        left/right arrow buttons
  113.               Move to the previous/next page.
  114.  
  115.        double left/right arrow buttons
  116.               Move backward or forward by ten pages.
  117.  
  118.        'Page' entry box
  119.               Move  to  a specific page number.  Click in the box
  120.               to activate it, type  the  page  number,  then  hit
  121.               return.
  122.  
  123.        magnifying glass buttons
  124.               Increase and decrease the resolution, i.e., zoom in
  125.               and zoom out.
  126.  
  127.        binoculars button
  128.               Find a text string.
  129.  
  130.        print button
  131.               Bring up a dialog for generating a PostScript file.
  132.               The  dialog  has  options  to  set  the pages to be
  133.               printed and the PostScript  file  name.   The  file
  134.               name  can  be  '-' for stdout or '|command' to pipe
  135.               the PostScript through a command, e.g., '|lpr'.
  136.  
  137.        '?' button
  138.               Bring up the 'about xpdf' window.
  139.  
  140.        link info
  141.               The space between the '?'  and  'Quit'  buttons  is
  142.               used to show the URL or external file name when the
  143.               mouse is over a link.
  144.  
  145.        'Quit' button
  146.               Quit xpdf.
  147.  
  148.    Menu
  149.        Pressing the right mouse button will  post  a  popup  menu
  150.        with the following commands:
  151.  
  152.        Open...
  153.               Open a new PDF file via a file requester.
  154.  
  155.        Save PDF...
  156.               Save the current file via a file requester.
  157.  
  158.        Rotate left
  159.               Rotate the page 90 degrees counterclockwise.
  160.  
  161.        Rotate right
  162.               Rotate  the  page  90  degrees  clockwise.  The two
  163.  
  164.               rotate commands  are  intended  primarily  for  PDF
  165.               files  where the rotation isn't correctly specified
  166.               in the file, but they're  also  useful  if  your  X
  167.               server doesn't support font rotation.
  168.  
  169.        Quit   Quit xpdf.
  170.  
  171.    Text selection
  172.        Dragging  the  mouse  with  the left button held down will
  173.        highlight an arbitrary rectangle.  Any  text  inside  this
  174.        rectangle will be copied to the X selection buffer.
  175.  
  176.    Links
  177.        Clicking  on  a hyperlink will jump to the link's destina-
  178.        tion.  A link to another PDF document will make xpdf  load
  179.        that  document.   A 'launch' link to an executable program
  180.        will display a dialog, and if you click 'ok', execute  the
  181.        program.   URL links call an external command (see the WEB
  182.        BROWSERS section below).
  183.  
  184.    Panning
  185.        Dragging the mouse with the middle button held  down  pans
  186.        the window.
  187.  
  188.    Key bindings
  189.        o      Open a new PDF file via a file requester.
  190.  
  191.        f      Find a text string.
  192.  
  193.        n      Move to the next page.
  194.  
  195.        p      Move to the previous page.
  196.  
  197.        <Space> or <PageDown> or <Next>
  198.               Scroll down on the current page; if already at bot-
  199.               tom, move to next page.
  200.  
  201.        <Backspace> or <Delete> or <PageUp> or <Previous>
  202.               Scroll up on the current page; if already  at  top,
  203.               move to previous page.
  204.  
  205.        <Home> Scroll to top of current page.
  206.  
  207.        <End>  Scroll to bottom of current page.
  208.  
  209.        arrows Scroll the current page.
  210.  
  211.        control-L
  212.               Redraw the current page.
  213.  
  214.        q      Quit xpdf.
  215.  
  216. 2 WEB_BROWSERS
  217.  
  218.        If  you  want  to  run xpdf automatically from netscape or
  219.        mosaic (and probably other browsers) when you click  on  a
  220.        link to a PDF file, you need to edit (or create) the files
  221.        .mime.types and  .mailcap  in  your  home  directory.   In
  222.        .mime.types add the line:
  223.  
  224.               application/pdf pdf
  225.  
  226.        In .mailcap add the lines:
  227.  
  228.               # Use xpdf to view PDF files.
  229.               application/pdf; xpdf -err %s
  230.  
  231.        Make sure that xpdf is on your executable search path.
  232.  
  233.        When you click on a URL link in a PDF file, xpdf will exe-
  234.        cute  the  command  specified   by   the   xpdf.urlCommand
  235.        resource,  replacing  an  occurrence of '%s' with the URL.
  236.        For example, to call  netscape  with  the  URL,  use  this
  237.        resource setting:
  238.  
  239.               xpdf.urlCommand: netscape -remote 'openURL(%s)'
  240.  
  241. 2 REMOTE_SERVER_MODE
  242.  
  243.        Xpdf  can be started in remote server mode by specifying a
  244.        server name (in addition to the file name  and  page  num-
  245.        ber).  For example:
  246.  
  247.               xpdf -remote myServer file.pdf
  248.  
  249.        If  there is currently no xpdf running in server mode with
  250.        the name 'myServer', a new xpdf window will be opened.  If
  251.        another command:
  252.  
  253.               xpdf -remote myServer another.pdf 9
  254.  
  255.        is  issued,  a  new  copy  of  xpdf  will  not be started.
  256.        Instead, the first xpdf (the server) will load another.pdf
  257.        and display page nine.  If the file name is the same:
  258.  
  259.               xpdf -remote myServer another.pdf 4
  260.  
  261.        the xpdf server will simply display the specified page.
  262.  
  263.        The -raise option tells the server to raise its window; it
  264.        can be specified with or without a file name and page num-
  265.        ber.
  266.  
  267.        The  -quit option tells the server to close its window and
  268.        exit.
  269.  
  270. 2 CONFIGURATION_FILE
  271.  
  272.        Xpdf will read a file called .xpdfrc from your home direc-
  273.        tory (if it exists).  This file can contain two  types  of
  274.        entries.
  275.  
  276.        fontpath directory
  277.               Look for Type 1 fonts in directory.  Xpdf uses this
  278.               only to get the font encoding.   For  display,  the
  279.               font must also be mapped with a fontmap entry.
  280.  
  281.        fontmap PDF-font X-font
  282.               Map  PDF-font  (as  referenced in a PDF file) to X-
  283.               font, which should be a standard X font  descriptor
  284.               with '%s' in the pixel size position.
  285.  
  286.        For example, use:
  287.  
  288.               fontmap        TimesCE-Roman       -*-times-medium-
  289.               r-*-*-%s-*-*-*-*-*-iso8859-2
  290.  
  291.        to map the  Central  European  (Latin-2)  version  of  the
  292.        Times-Roman  font.  This assumes that you've installed the
  293.        appropriate X fonts (see mkfontdir(1)).  Xpdf knows  about
  294.        the ISO8859-2 encoding, so you don't need a fontpath entry
  295.        for these fonts.  To use the Bakoma Type 1 fonts, do this:
  296.  
  297.               fontpath /home/derekn/fonts/bakoma
  298.               fontmap      cmb10      -bakoma-cmb10-medium-r-nor-
  299.               mal--%s-*-*-*-p-*-adobe-fontspecific
  300.               fontmap    cmbsy10    -bakoma-cmbsy10-medium-r-nor-
  301.               mal--%s-*-*-*-p-*-adobe-fontspecific
  302.               etc...
  303.  
  304.        This  assumes  that the Type 1 font files are available in
  305.        the directory /home/derekn/fonts/bakoma.
  306.  
  307. 2 BUGS
  308.  
  309.        This  is  a  beta  release  of xpdf, and there are still a
  310.        bunch of PDF features which I have yet to implement.
  311.  
  312.        At this point, the biggest problem is that embedded  fonts
  313.        are not handled properly.
  314.  
  315. 2 AUTHOR
  316.  
  317.        The   xpdf   software   and  documentation  are  copyright
  318.        1996-1998 Derek B. Noonburg (derekn@aimnet.com).
  319.  
  320. 2 SEE_ALSO
  321.  
  322.        pdftops(1), pdftotext(1)
  323.        http://www.aimnet.com/~derekn/xpdf/
  324.  
  325.