home *** CD-ROM | disk | FTP | other *** search
/ Der Mediaplex Sampler - Die 6 von Plex / 6_v_plex.zip / 6_v_plex / DISK5 / DOS_33 / PCPS730.ZIP / PCPS.MAN < prev    next >
Text File  |  1993-02-25  |  18KB  |  416 lines

  1.  
  2. PCPS(V7.30)                                                        PCPS(V7.30)
  3.  
  4. NAME
  5.         PCPS.EXE - convert text to postscript
  6.  
  7. SYNOPSIS
  8.         PCPS [-arg1 -arg2 -arg3 ... -argn] [filename(s)]
  9.  
  10. DESCRIPTION
  11.         PCPS reads in text files, converts them to POSTSCRIPT and outputs
  12.         them to a POSTSCRIPT printer, a file or stdout.  If no input files
  13.         are specified, PCPS will take its input from stdin.  Many attributes
  14.         such as fonts, headings, orientation, various formatting options
  15.         etc. may be specified.
  16.  
  17.         The various arguments are detailed below.  Any field enclosed in <>
  18.         is mandatory for that argument but those enclosed in [] are
  19.         optional:
  20.  
  21.         -? or ? or (no arguments AND no stdin pipe)
  22.                 This will give you a multiple page help screen.
  23.  
  24.         -l      List available font codes.  ALL other arguments are ignored
  25.                 when -l is used.
  26.  
  27.         -#[n]   Print line numbers.  If "n" is not specified, the line
  28.                 numbers default to 4 digits but are set to "n" digits when
  29.                 "n" is specified.  "n" can be a maximum of 6.  The number
  30.                 of digits is automatically increased should the line numbers
  31.                 exceed the number able to be specified by the current
  32.                 number of digits.
  33.  
  34.                 EXAMPLE: -#     print line numbers and start with 4 digits.
  35.                          -#3    print line numbers and start with 3 digits.
  36.  
  37. *       -#-     Do NOT print line numbers.
  38.  
  39.         -a<o|e> Print alternate pages where o = ODD and e = even.  This is
  40.                 useful when double sided printing is required.
  41.  
  42.                 EXAMPLE: -ao    print only odd pages.
  43.  
  44. *       -a-     Turn OFF alternate page printing - print both odd and even.
  45.  
  46.         -b      Disable banner printing.
  47.  
  48. *       -b-     Enable banner printing.
  49.  
  50.         -c      Truncate (Cut) lines longer than the maximum number of
  51.                 characters allowed in the current mode.
  52.  
  53. *       -c-     Disable trancation of lines - wrap them instead.
  54.  
  55.         -db     Debug - download the extended postscript error handler to
  56.                 the printer before the print job.  This error handler causes
  57.                 the printer to output any errors on paper as well as back
  58.                 along its comms line.
  59.  
  60.                 Use this option carefully as, on many printers, this causes
  61.                 a permanent change to its error handling routine.
  62.  
  63.                 This option should only be used as a last resort if, for
  64.                 any reason, your printer refuses to print the output from
  65.                 PCPS and you are unable to monitor your printers errors;
  66.                 E.g. Most spoolers have a log file and any errors output by
  67.                 the printer are normally placed into this file, but access
  68.                 to this file may be impractical.
  69.  
  70. *       -db-    Disable debug mode.
  71.  
  72.         -dl     Delete the input file(s) after successful processing.
  73.                 **************** USE WITH CAUTION *******************
  74.                 PCPS will consider the file processed successfully if it
  75.                 receives no errors during the processing and will delete
  76.                 the input file.  Be aware that print jobs can sometimes get
  77.                 lost, especially on networks.
  78.  
  79. *       -dl-    Do NOT delete the input file.
  80.  
  81.         -dm     Disable memory sorting in inverse print mode (-i).  This is
  82.                 useful if, for any reason, a memory allocation error is
  83.                 reported whilst processing your document.
  84.  
  85. *       -dm-    Enable memory sorting in inverse print mode (-i).
  86.  
  87.         -dr     Enable draft print mode where the word "DRAFT" is printed
  88.                 in light grey on the background of each page behind the
  89.                 text.  This is functionally equivalent to the argument
  90.                 "-kDRAFT".
  91.  
  92. *       -dr-    Disable all background printing including any text
  93.                 specified with the "-k" argument.
  94.  
  95.         -e<l|r|t|b><n>
  96.                 Set the specified margin (Edge) to be "n" points (1/72
  97.                 inch) where l = Left, r = Right, t = Top and b = Bottom.
  98.  
  99.                 EXAMPLE: -el72  set the left margin to 1 inch.
  100.  
  101.                 The default margins are as follows:
  102.  
  103.                           | Left      Right     Top       Bottom
  104.                 ----------+---------------------------------------
  105.                 Portrait  | 36p(.50") 18p(.25") 36p(.50") 36p(.50")
  106.                 Landscape | 18p(.25") 18p(.25") 36p(.50") 18p(.25")
  107.  
  108. *       -e-     Set the margins back to their defaults.
  109.  
  110.         -f<[font code][size]>
  111.                 This argument is used to set the font type and/or the font
  112.                 size.  The "font code" is the abbreviated code for the font
  113.                 which is listed by the "-l" option.  The size is in points.
  114.                 See SUPPORTED FONTS.
  115.  
  116.                 EXAMPLE: -fhn12 set font to Helvetica Narrow with the size
  117.                                 of 12 point.
  118.  
  119. *       -f-     Set the font and size to the defaults.
  120.  
  121.         -g or -gonewordcomment or "-gmultiple word comment"
  122.                 Print a gaudy banner at the top of the page containing the
  123.                 files last modification date, the current page number, the
  124.                 file name and an optional comment.  Please note that the
  125.                 -g and the comment must be enclosed in quotes if there is
  126.                 more than one word in the comment.
  127.  
  128.                 EXAMPLE: -g             print a gaudy banner at the top of
  129.                                         each page.
  130.                          "-gMy file"    print the gaudy banner but add a
  131.                                         comment inside the banner.
  132.  
  133. *       -g-     Disable the gaudy banner.
  134.  
  135.         -h<t|b>[n]
  136.                 Specify the paper tray (Hopper) to start with where t = Top
  137.                 and b = Bottom.  This may be followed by an optional number
  138.                 which specifies the number of pages to print from this tray
  139.                 before switching to the other.
  140.  
  141.                 EXAMPLE: -ht1   print the first page from the top paper
  142.                                 tray, then switch to the bottom one.
  143.  
  144. *       -h-     Do NOT specify any trays - use the printers default.
  145.  
  146.         -i      Inverse page order (ie. Output the last page first).
  147.  
  148. *       -i-     Normal page order.
  149.  
  150.         -k<text>
  151.                 Print "text" (K)omment in grey on the background of each
  152.                 page where "text" may be up to 40 characters.
  153.  
  154. *       -k-     Disable background printing including any previously
  155.                 specified "-dr" argument.
  156.  
  157.         -m      Enable manual paper feed - useful if you wish to use
  158.                 different paper than that loaded into the paper tray(s).
  159.  
  160.         -m1     Enable manual paper feed on the first page printed only -
  161.                 useful if the first page needs to be printed on letter head
  162.                 and you are not fortunate enough to have two paper trays.
  163.  
  164. *       -m-     Disable all manual paper feeding.
  165.  
  166.         -n<n>   Set lines per page to "n" lines.
  167.  
  168.                 EXAMPLE: -n66   set the pages to 66 lines.
  169.  
  170.         -n-     Set lines per page to the default which is to print
  171.                 whatever will fit on the page or until Form Feed characters
  172.                 are encountered.
  173.  
  174.         -o<path>
  175.                 Output postscript to <path> instead of the default LPT2
  176.                 where <path> may be a filename (Eg. c:\doc\example.ps) or
  177.                 the name of another device (Eg. LPT1).
  178.  
  179.                 EXAMPLE: -oC:\TEMP\EXAMPLE.PS   output the POSTSCRIPT to
  180.                                                 the specified file.
  181.  
  182.                 ***PLEASE NOTE***
  183.                 If PCPS detects that its output is being piped to another
  184.                 program it will automatically send the postscript to stdout
  185.                 and totally ignore any output file specified with this
  186.                 argument.  In this mode, PCPS sends the screen information
  187.                 to stderr.
  188.  
  189. *       -o-     Use the default output file LPT2.
  190.  
  191.         -p<dir path>
  192.                 Get printer preparation data from the file PCPS.PPF under
  193.                 the directory <dir path>.  The contents of this file are
  194.                 sent to the printer prior to any other output from PCPS.
  195.                 See SUPPORT FILES.
  196.  
  197.                 EXAMPLE: -pC:\UTILS     Use the file PCPS.PPF under the
  198.                                         directory C:\UTILS
  199.  
  200.         -p-     Do not use any printer preparation file.
  201.  
  202.         -q      Quiet mode - no fancy information is displayed.  For each
  203.                 file processed, only the number of pages printed is
  204.                 displayed.
  205.  
  206. *       -q-     Noisy :-) mode with lots of information displayed.
  207.  
  208.         -r      Rotate the print 90 degrees to Landscape orientation.
  209.  
  210. *       -r-     Use portrait orientation.
  211.  
  212.         -2      Rotate to Landscape orientation and print in 2 columns.
  213.                 This allows two normal pages to fit on one.
  214.  
  215. *       -2-     Use single column Portrait orientation.
  216.  
  217.         -s<a|u> Use paper size where a = A4 and u = US letter.
  218.  
  219.                 EXAMPLE: -su    set the paper size to US letter (11" x 8.5")
  220.  
  221. *       -s-     Use default paper size (A4).
  222.  
  223.         -t[n]   Expand tab characters to spaces.  If "n" is specified, tabs
  224.                 will be expanded to "n" spaces, otherwise they will be
  225.                 expanded to 8 spaces.
  226.  
  227.                 EXAMPLE: -t     expand all tab characters to 8 spaces.
  228.                          -t4    expand all tab characters to 4 spaces.
  229.  
  230. *       -t-     Do NOT expand tab characters; pass them through untouched.
  231.  
  232.         -u[n]   Unlimited line length (well almost...65535 chars).  If "n"
  233.                 is specified, set line length to "n" characters.  Normally
  234.                 PCPS calculates the maximum line length using the font size
  235.                 and the available printing area but this calculation is
  236.                 moade assuming the non-proportional default COURIER font
  237.                 and is not necessarily accurate for other fonts.  This
  238.                 argument allows the user to over-ride the calculated
  239.                 maximum.
  240.  
  241.                 EXAMPLE: -u     set maximum char per line to 65,535
  242.                          -u60   set maximum char per line to 60
  243.  
  244. *       -u-     Use the default calculated maximum line length.
  245.  
  246.         -v<n[-|,|$>
  247.                 Specify page ranges to print where a range may be a single
  248.                 page (n), a range of pages (n1-n2) or from a page to the
  249.                 end of the document (n-$).  Each separate range
  250.                 specification should be separated by a comma.
  251.  
  252.                 EXAMPLE: -v1-12,35,50-$ print pages 1 through 12, 35 and 50
  253.                                         through to the end of the document.
  254.  
  255. *       -v-     Print all pages.
  256.  
  257.         -x      The first and last characters output by PCPS will be ^D
  258.                 (0x04) characters.  This is required by some printers to
  259.                 signify end of job.
  260.  
  261. *       -x-     Do not output ^D (0x04) characters.
  262.  
  263.         -z<o|e> Enable margin swapping for double sided printing on (O)dd
  264.                 or (E)ven pages.
  265.  
  266.                 In Portrait mode the Left and Right margins will be swapped
  267.                 on the specified pages as well as the Page-number and File-
  268.                 -time boxes in the Gaudy header if gaudy mode is enabled.
  269.  
  270.                 In Landscape mode the Top and Bottom margins are swapped on
  271.                 the specified pages.  No change is performed on the Gaudy
  272.                 banner.
  273.  
  274. *       -z-     Disable margin swapping.
  275.  
  276.  
  277.         All arguments preceded by * reflect the default conditions for PCPS.
  278.  
  279.         Normal DOS style wildcards (* and ?) are allowed when specifying
  280.         the input files.
  281.  
  282. ENVIRONMENT
  283.         PCPSCFG
  284.                 Points to a directory containing a PCPS configuration file
  285.                 (See SUPPORT FILES).
  286.  
  287.         PCPSPPF
  288.                 Points to a directory containing a PCPS printer prep file
  289.                 (See SUPPORT FILES).
  290.  
  291.  
  292. SUPPORT FILES
  293.         PCPS can have two support files:  PCPS.CFG and PCPS.PPF
  294.         The Printer Preparation file (PPF) may be explicitly specified by
  295.         the -p argument or explicitly disabled by -p- but if not, the method
  296.         for locating both files is identical:
  297.  
  298.         The current directory is first searched for the file and if it is not
  299.         found there, the directory that PCPS.EXE was executed from is then
  300.         searched.  If this also fails, PCPS checks the environment for a
  301.         variable PCPS<ext> where <ext> is either CFG or PPF and checks for
  302.         the existance of the file in the directory pointed to by this
  303.         variable.
  304.  
  305.         PCPS.CFG
  306.                 This file can contain arguments in the same way that the
  307.                 command line can have arguments.  The arguments may be
  308.                 spread over several lines and will be processed
  309.                 sequentially.
  310.  
  311.                 PCPS processes arguments from this file first, should it
  312.                 exist, and then from the command line, so the command line
  313.                 arguments may over-ride the arguments in this file or even
  314.                 negate them.
  315.  
  316.         PCPS.PPF
  317.                 Some POSTSCRIPT printers require some setup or preparation
  318.                 information sent to them before the output of PCPS.  This
  319.                 support file is provided for such purposes.
  320.  
  321.                 Any characters contained in this file will sent to the
  322.                 output file before any POSTSCRIPT output from PCPS.
  323.  
  324.  
  325. SCREEN SUPPORT
  326.         PCPS can support differing numbers of lines per screen and provides
  327.         a "more" feature when listing font codes or showing usage.  At the
  328.         [more] prompt you may view the next screen by pressing any key
  329.         other than the "q" key which will quit the output.
  330.  
  331. SUPPORTED FONTS
  332.         PCPS currently supports the default fonts built into an Apple
  333.         Laserwriter and assumes that the target printer will "know" these
  334.         fonts.  Listed below are the fonts and the code for each that may
  335.         be used with the -f argument:
  336.  
  337.                 FontCode        Font
  338.                 --------        ----
  339.  
  340.                 AGB             AvantGarde-Book
  341.                 AGBO            AvantGarde-BookOblique
  342.                 AGD             AvanteGarde-Demi
  343.                 AGDO            AvantGarde-DemiOblique
  344.                 BD              Bookman-Demi
  345.                 BDI             Bookman-DemiItalic
  346.                 BL              Bookman-Light
  347.                 BLI             Bookman-LightItalic
  348.                 C               Courier
  349.                 CB              Courier-Bold
  350.                 CBO             Courier-BoldOblique
  351.                 CO              Courier-Oblique
  352.                 H               Helvetica
  353.                 HB              Helvetica-Bold
  354.                 HBO             Helvetica-BoldOblique
  355.                 HN              Helvetica-Narrow
  356.                 HNB             Helvetica-Narrow-Bold
  357.                 HNBO            Helvetica-Narrow-BoldOblique
  358.                 HNO             Helvetica-Narrow-Oblique
  359.                 HO              Helvetica-Oblique
  360.                 NCSB            NewCenturySchlbk-Bold
  361.                 NCSBI           NewCenturySchlbk-BoldItalic
  362.                 NCSI            NewCenturySchlbk-Italic
  363.                 NCSR            NewCenturySchlbk-Roman
  364.                 PB              Palatino-Bold
  365.                 PBI             Palatino-BoldItalic
  366.                 PI              Palatino-Italic
  367.                 PR              Palatino-Roman
  368.                 S               Symbol
  369.                 TB              Times-Bold
  370.                 TBI             Times-BoldItalic
  371.                 TI              Times-Italic
  372.                 TR              Times-Roman
  373.                 ZCMI            ZapfChancery-MediumItalic
  374.                 ZD              ZapfDingbats
  375.  
  376.         PCPS now supports most european characters in all text fonts.
  377.  
  378. REQUIREMENTS
  379.         DOS ONLY VERSION
  380.                 MS/PC DOS V2.1 is the minimum required version, though for
  381.                 full compatibility, DOS3.0 or greater is recommended.
  382.  
  383.         FAMILY MODE VERSION
  384.                 For running under DOS, the above requirements are true.
  385.                 For running under OS2 the user should require OS2 1.0 or
  386.                 higher though the author has only run it under OS2 2.0 and
  387.                 would appreciate confirmation that it runs under any other
  388.                 version.
  389.  
  390. DIAGNOSTICS
  391.         These should be fairly self-explanatory.
  392.  
  393. AUTHOR
  394.         Paul Carapetis
  395.         Internet: pjc@melb.bull.oz.au
  396.  
  397. BUGS
  398.         Far too many argument letters which are far from intuitive.  The
  399.         author proposes to change the arguments to short words (Eg. -out,
  400.         -tab etc.) where the user may specify the full word or enough
  401.         letters to render it unique.  The author is interested in the
  402.         user's opinions on this and any other matters relating to PCPS so
  403.         feel free to contact him.
  404.  
  405.         There has also been one report of some operating problems on one
  406.         particular Novell lan - this is currently under investigation.
  407.  
  408.         Hopefully there are no others but sometimes they manage to sneak
  409.         their ugly little heads through so the author would be extremely
  410.         grateful to hear from anyone encountering any of these little
  411.         beasties!
  412.  
  413. NOTES
  414.         POSTSCRIPT is a trademark of Adobe Systems Incorporated.
  415.  
  416.