home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat1 / xpr.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  13.8 KB  |  397 lines

  1.  
  2.  
  3.  
  4. XPR(1)                               XPR(1)
  5.  
  6.  
  7. NNAAMMEE
  8.        xpr - print an X window dump
  9.  
  10. SSYYNNOOPPSSIISS
  11.        xxpprr  [ --ddeevviiccee _d_e_v_t_y_p_e ] [ --ssccaallee _s_c_a_l_e ] [ --hheeiigghhtt _i_n_c_h_e_s
  12.        ] [ --wwiiddtthh _i_n_c_h_e_s ] [ --lleefftt _i_n_c_h_e_s ] [  --ttoopp  _i_n_c_h_e_s  ]    [
  13.        --hheeaaddeerr    _s_t_r_i_n_g    ]  [  --ttrraaiilleerr    _s_t_r_i_n_g ] [ --llaannddssccaappee ] [
  14.        --ppoorrttrraaiitt ] [ --ppllaannee _n_u_m_b_e_r ] [ --ggrraayy ] [ --rrvv ] [ --ccoommppaacctt
  15.        ]  [  --oouuttppuutt  _f_i_l_e_n_a_m_e ] [ --aappppeenndd _f_i_l_e_n_a_m_e ] [ --nnooffff ] [
  16.        --sspplliitt _n ] [ --ppssffiigg ] [ --ddeennssiittyy _d_p_i ] [ --ccuuttooffff _l_e_v_e_l ] [
  17.        --nnooppoossiittiioonn  ] [ --ggaammmmaa _c_o_r_r_e_c_t_i_o_n ] [ --rreennddeerr _a_l_g_o_r_i_t_h_m ]
  18.        [ --sslliiddee ] [ _f_i_l_e_n_a_m_e ]
  19.  
  20. DDEESSCCRRIIPPTTIIOONN
  21.        _x_p_r takes as input a window dump file produced  by  _x_w_d_(_1_)
  22.        and formats it for output on PostScript printers, the Dig-
  23.        ital LN03 or LA100, the IBM PP3812 page    printer,  the  HP
  24.        LaserJet     (or other PCL printers), or the HP PaintJet.  If
  25.        no file argument is given, the standard input is used.  By
  26.        default, _x_p_r prints the largest possible representation of
  27.        the window on the output page.  Options allow the user  to
  28.        add  headers  and  trailers,  specify  margins, adjust the
  29.        scale and orientation, and append multiple window dumps to
  30.        a single output file.  Output is to standard output unless
  31.        --oouuttppuutt is specified.
  32.  
  33.        CCoommmmaanndd OOppttiioonnss
  34.  
  35.  
  36.        --ddeevviiccee _d_e_v_t_y_p_e
  37.           Specifies the device on  which  the  file     will  be
  38.           printed.    Currently supported:
  39.            llaa110000  Digital LA100
  40.            lljjeett      HP LaserJet series and other monochrome
  41.               PCL devices such as ThinkJet, QuietJet,
  42.               RuggedWriter, HP2560 series, and HP2930
  43.               series printers
  44.            llnn0033      Digital LN03
  45.            ppjjeett      HP PaintJet (color mode)
  46.            ppjjeettxxll HP  HP  PaintJet  XL     Color     Graphics
  47.               Printer (color mode)
  48.            pppp      IBM PP3812
  49.            ppss      PostScript printer
  50.  
  51.           The  default  is    PostScript.   --ddeevviiccee  llww (Laser-
  52.           Writer) is equivalent to -device ps and is provided
  53.           only for backwards compatibility.
  54.  
  55.        --ssccaallee _s_c_a_l_e
  56.           Affects  the  size  of the window on the page.  The
  57.           PostScript, LN03,     and  HP  printers  are     able  to
  58.           translate     each  bit  in    a window pixel map into a
  59.           grid of a specified size.      For  example    each  bit
  60.           might  translate    into  a     3x3 grid.  This would be
  61.  
  62.  
  63.  
  64. X Version 11            Release 6                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XPR(1)                               XPR(1)
  71.  
  72.  
  73.           specified by --ssccaallee _3.   By  default  a  window  is
  74.           printed  with  the largest scale that will fit onto
  75.           the page for the specified orientation.
  76.  
  77.        --hheeiigghhtt _i_n_c_h_e_s
  78.           Specifies the maximum height of the page.
  79.  
  80.        --wwiiddtthh _i_n_c_h_e_s
  81.           Specifies the maximum width of the page.
  82.  
  83.        --lleefftt _i_n_c_h_e_s
  84.           Specifies the left margin in inches.  Fractions are
  85.           allowed.     By default the window is centered in the
  86.           page.
  87.  
  88.        --ttoopp _i_n_c_h_e_s
  89.           Specifies the top margin for the picture in inches.
  90.           Fractions are allowed.
  91.  
  92.        --hheeaaddeerr _s_t_r_i_n_g
  93.           Specifies     a  header string to be printed above the
  94.           window.
  95.  
  96.        --ttrraaiilleerr _s_t_r_i_n_g
  97.           Specifies a trailer string to be printed below  the
  98.           window.
  99.  
  100.        --llaannddssccaappee
  101.           Forces the window to printed in landscape mode.  By
  102.           default a window is printed such that  its  longest
  103.           side follows the long side of the paper.
  104.  
  105.        --ppllaannee _n_u_m_b_e_r
  106.           Specifies     which bit plane to use in an image.  The
  107.           default is to use the entire image and  map  values
  108.           into black and white based on color intensities.
  109.  
  110.        --ggrraayy  _2 _| _3 _| _4
  111.           Uses  a  simple 2x2, 3x3, or 4x4 gray scale conver-
  112.           sion on a     color    image,    rather    than  mapping  to
  113.           strictly    black  and white.  This doubles, triples,
  114.           or quadruples the effective width and height of the
  115.           image.
  116.  
  117.        --ppoorrttrraaiitt
  118.           Forces  the  window to be printed in portrait mode.
  119.           By default  a  window  is     printed  such    that  its
  120.           longest side follows the long side of the paper.
  121.  
  122.        --rrvv    Forces the window to be printed in reverse video.
  123.  
  124.        --ccoommppaacctt
  125.           Uses  simple run-length encoding for compact repre-
  126.           sentation of windows with lots of white pixels.
  127.  
  128.  
  129.  
  130. X Version 11            Release 6                2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. XPR(1)                               XPR(1)
  137.  
  138.  
  139.        --oouuttppuutt _f_i_l_e_n_a_m_e
  140.           Specifies an output file name.  If this  option  is
  141.           not specified, standard output is used.
  142.  
  143.        --aappppeenndd _f_i_l_e_n_a_m_e
  144.           Specifies     a filename previously produced by _x_p_r to
  145.           which the window is to be appended.
  146.  
  147.        --nnooffff  When specified in     conjunction  with  --aappppeenndd,  the
  148.           window will appear on the same page as the previous
  149.           window.
  150.  
  151.        --sspplliitt _n
  152.           This option allows the user to split a window  onto
  153.           several  pages.    This  might be necessary for very
  154.           large  windows  that  would  otherwise  cause   the
  155.           printer  to  overload  and  print     the  page  in an
  156.           obscure manner.
  157.  
  158.        --ppssffiigg Suppress translation of the PostScript  picture  to
  159.           the center of the page.
  160.  
  161.        --ddeennssiittyy _d_p_i
  162.           Indicates     what dot-per-inch density should be used
  163.           by the HP printer.
  164.  
  165.        --ccuuttooffff _l_e_v_e_l
  166.           Changes the intensity level where colors are mapped
  167.           to either black or white for monochrome output on a
  168.           LaserJet printer.     The _l_e_v_e_l is expressed     as  per-
  169.           centage of full brightness.  Fractions are allowed.
  170.  
  171.        --nnooppoossiittiioonn
  172.           This option causes header, trailer, and image posi-
  173.           tioning  command    generation  to    be  bypassed  for
  174.           LaserJet, PaintJet and PaintJet XL printers.
  175.  
  176.        --ggaammmmaa _c_o_r_r_e_c_t_i_o_n
  177.           This changes the intensity of the colors printed by
  178.           PaintJet    XL  printer. The _c_o_r_r_e_c_t_i_o_n is a floating
  179.           point value in the range 0.00 to 3.00.  Consult the
  180.           operator's  manual  to  determine the correct value
  181.           for the specific printer.
  182.  
  183.        --rreennddeerr _a_l_g_o_r_i_t_h_m
  184.           This allows PaintJet XL printer to render the image
  185.           with  the best quality versus performance tradeoff.
  186.           Consult the operator's manual  to     determine  which
  187.           _a_l_g_o_r_i_t_h_ms are available.
  188.  
  189.        --sslliiddee This  option  allows  overhead transparencies to be
  190.           printed using the PaintJet and PaintJet  XL  print-
  191.           ers.
  192.  
  193.  
  194.  
  195.  
  196. X Version 11            Release 6                3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. XPR(1)                               XPR(1)
  203.  
  204.  
  205. SSEEEE AALLSSOO
  206.        xwd(1), xwud(1), X(1)
  207.  
  208. LLIIMMIITTAATTIIOONNSS
  209.        The  current version of _x_p_r can generally print out on the
  210.        LN03 most X windows that are not larger than two-thirds of
  211.        the  screen.   For example, it will be able to print out a
  212.        large Emacs window, but it will usually fail  when  trying
  213.        to print out the entire screen.    The LN03 has memory limi-
  214.        tations that can cause it to incorrectly print very  large
  215.        or  complex  windows.   The two most common errors encoun-
  216.        tered  are  ``band  too    complex''   and      ``page   memory
  217.        exceeded.''   In     the first case, a window may have a par-
  218.        ticular six pixel row that contains too many changes (from
  219.        black  to white to black).  This will cause the printer to
  220.        drop part of the line and possibly parts of  the     rest  of
  221.        the  page.   The     printer will flash the number `1' on its
  222.        front panel when this problem occurs.  A possible solution
  223.        to  this     problem is to increase the scale of the picture,
  224.        or to split the picture onto two or more pages.    The  sec-
  225.        ond  problem,  ``page memory exceeded,'' will occur if the
  226.        picture contains too much black, or if  the  picture  con-
  227.        tains complex half-tones such as the background color of a
  228.        display.     When this problem occurs the printer will  auto-
  229.        matically  split     the  picture into two or more pages.  It
  230.        may flash the number `5' on its from panel.  There  is  no
  231.        easy solution to this problem.  It will probably be neces-
  232.        sary to either cut and paste, or to rework the application
  233.        to produce a less complex picture.
  234.  
  235.        There  are  several  limitations on the LA100 support: the
  236.        picture will always be printed in portrait mode, there  is
  237.        no scaling, and the aspect ratio will be slightly off.
  238.  
  239.        Support    for PostScript output currently cannot handle the
  240.        --aappppeenndd, --nnooffff or --sspplliitt options.
  241.  
  242.        The --ccoommppaacctt option is _o_n_l_y supported for PostScript  out-
  243.        put.  It compresses white space but not black space, so it
  244.        is not useful for reverse-video windows.
  245.  
  246.        For color images, should map directly to PostScript  image
  247.        support.
  248.  
  249.  
  250. HHPP PPRRIINNTTEERRSS
  251.        If  no  --ddeennssiittyy is specified on the command line 300 dots
  252.        per inch will be assumed for _l_j_e_t and 90 dots per inch for
  253.        _p_j_e_t.  Allowable _d_e_n_s_i_t_y values for a LaserJet printer are
  254.        300, 150, 100, and 75 dots per inch.  Consult  the  opera-
  255.        tor's  manual  to  determine  densities supported by other
  256.        printers.
  257.  
  258.        If no --ssccaallee is specified the image will     be  expanded  to
  259.  
  260.  
  261.  
  262. X Version 11            Release 6                4
  263.  
  264.  
  265.  
  266.  
  267.  
  268. XPR(1)                               XPR(1)
  269.  
  270.  
  271.        fit the printable page area.
  272.  
  273.        The  default  printable    page area is 8x10.5 inches. Other
  274.        paper sizes can be  accommodated     using    the  --hheeiigghhtt  and
  275.        --wwiiddtthh options.
  276.  
  277.        Note that a 1024x768 image fits the default printable area
  278.        when processed at 100 dpi with scale=1, the same image can
  279.        also  be     printed  using     300  dpi  with     scale=3 but will
  280.        require considerably  more  data     be  transferred  to  the
  281.        printer.
  282.  
  283.        _x_p_r  may     be tailored for use with monochrome PCL printers
  284.        other than the LaserJet.     To print on a ThinkJet (HP2225A)
  285.        _x_p_r could be invoked as:
  286.  
  287.        xpr -density 96 -width 6.667 _f_i_l_e_n_a_m_e
  288.  
  289.        or for black-and-white output to a PaintJet:
  290.  
  291.        xpr -density 180 _f_i_l_e_n_a_m_e
  292.  
  293.        The  monochrome intensity of a pixel is computed as 0.30*R
  294.        + 0.59*G + 0.11*B.  If a     pixel's  computed  intensity  is
  295.        less  than the --ccuuttooffff level it will print as white.  This
  296.        maps light-on-dark display images to black-on-white  hard-
  297.        copy.  The default cutoff intensity is 50% of full bright-
  298.        ness.   Example:     specifying  --ccuuttooffff   8877..55   moves   the
  299.        white/black intensity point to 87.5% of full brightness.
  300.  
  301.        A LaserJet printer must be configured with sufficient mem-
  302.        ory to handle the image.     For a full page at 300 dots  per
  303.        inch approximately 2MB of printer memory is required.
  304.  
  305.        Color  images  are produced on the PaintJet at 90 dots per
  306.        inch.  The PaintJet is limited to sixteen colors from  its
  307.        330 color palette on each horizontal print line.     _x_p_r will
  308.        issue a warning message if more than  sixteen  colors  are
  309.        encountered  on a line.    _x_p_r will program the PaintJet for
  310.        the first sixteen colors encountered on each line and  use
  311.        the  nearest  matching  programmed  value for other colors
  312.        present on the line.
  313.  
  314.        Specifying the --rrvv, reverse video, option for the PaintJet
  315.        will  cause black and white to be interchanged on the out-
  316.        put image.  No other colors are changed.
  317.  
  318.        Multiplane images must be recorded by _x_w_d in _Z_P_i_x_m_a_p  for-
  319.        mat.   Single  plane  (monochrome) images may be in either
  320.        _X_Y_P_i_x_m_a_p or _Z_P_i_x_m_a_p format.
  321.  
  322.        Some PCL printers do not recognize image positioning  com-
  323.        mands.    Output for these printers will not be centered on
  324.        the page and header and trailer    strings     may  not  appear
  325.  
  326.  
  327.  
  328. X Version 11            Release 6                5
  329.  
  330.  
  331.  
  332.  
  333.  
  334. XPR(1)                               XPR(1)
  335.  
  336.  
  337.        where expected.
  338.  
  339.        The  --ggaammmmaa  and --rreennddeerr options are supported only on the
  340.        PaintJet XL printers.
  341.  
  342.        The --sslliiddee option is not supported for LaserJet    printers.
  343.  
  344.        The --sspplliitt option is not supported for HP printers.
  345.  
  346.        The  --ggrraayy option is not supported for HP or IBM printers.
  347.        Copyright 1986, Marvin Solomon and the University of  Wis-
  348.        consin.
  349.        Copyright 1988, Hewlett Packard Company.
  350.        See _X_(_1_) for a full statement of rights and permissions.
  351.  
  352. AAUUTTHHOORRSS
  353.        Michael    R. Gretzinger, MIT Project Athena, Jose Capo, MIT
  354.        Project Athena (PP3812 support), Marvin    Solomon,  Univer-
  355.        sity  of Wisconsin, Bob Scheifler, MIT, Angela Bock and E.
  356.        Mike Durbin, Rich Inc. (grayscale),  Larry  Rupp,  HP  (HP
  357.        printer support).
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394. X Version 11            Release 6                6
  395.  
  396.  
  397.