home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / xpdf093.zip / XFree86 / lib / X11 / xpdf / xpdf.hlp < prev   
Text File  |  2001-10-26  |  15KB  |  447 lines

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