home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / LASER / PCL2ENG.ZIP / PCL2ENG.DOC next >
Encoding:
Text File  |  1990-03-08  |  2.8 KB  |  75 lines

  1.    PCL2ENG reads through HP LaserJet command files and prints an english language
  2. interpretation of the commands.
  3.  
  4.    This is the first release of PCL2ENG. It may be distributed freely.
  5.  
  6.    Future versions of PCL2ENG may add the following features:
  7.  
  8.        . Page forward and backward when displaying to the screen.
  9.  
  10.        . Additional HP printers.
  11.  
  12.        . Support for PCL5 commands.
  13.  
  14.        . Search and replace for commands and/or data.
  15.  
  16.        . Critical analysis of PCL data streams.
  17.  
  18.    To register for future versions of PCL2ENG, send your name and address
  19. (and any comments or requests) to:
  20.  
  21.                                   PCL2ENG Registration
  22.                                   Box 204
  23.                                   Mirror Lake, NH 03853
  24.  
  25.    Registration of PCL2ENG is free. When the next release of PCL2ENG is
  26. available, you will be notified and offered the opportunity to upgrade
  27. for an as-yet undetermined upgread fee.
  28.  
  29. ==============================================================================
  30.  
  31. To use PCL2ENG, you must first create the LaserJet command file. This can be
  32. done in one of the following ways:
  33.  
  34.    1. If you have the source code for the program that is printing to the
  35.       HP LaserJet, then you can modify the program to write the LaserJet
  36.       commands and data to a disk file instead of the HP LaserJet.
  37.  
  38.    2. You can use a capture program (such as VPRINT). This program captures
  39.       all data sent to LPTx and writes it to a disk file.
  40.  
  41. Once you have the HP LaserJet command file, invoke PCL2ENG with the format:
  42.  
  43.    PCL2ENG FileName -P
  44.  
  45.       where FileName is the name of the LaserJet command file and
  46.             -P is the optional parameter to send the english language report
  47.                to the printer on LPT1.
  48.  
  49.  
  50. Following is a sample of the output from PCL2ENG.
  51.  
  52. The HP LaserJet command file contains the following PCL command string
  53. (Note: the ^ character represents the ESCAPE character)
  54.  
  55. ^E^*t300R^&f2Y^&f0X^*p1851x2409Y^*c400a1B^&f1X^&f2Y^&f2XThis is the data^E
  56.  
  57. The output from PCL2ENG would be:
  58.  
  59. E                        Reset the printer
  60. *t300R   300             Set Resolution to 300 Dots/inch
  61. &f2Y     2               Set Macro ID to 2
  62. &f0X     2               Start Macro Defintion for 2
  63. *p1851x  1851            ...Set horizontal(X) position to 1851 dots
  64. ..2409Y  2409            ...Set vertical(Y) position to 2409 dots
  65. *c400a   400             ...Set Rectangle Width to 400 Dots
  66. ..1B     1               ...Set Rectangle Height to 1 Dot
  67. &f1X     2               Stop Macro Definition for 2
  68. &f2Y     2               Set Macro ID to 2
  69. &f2X     2               Execute Macro 2
  70. This is the data
  71. E                        Reset the printer
  72.  
  73.  
  74. Note that PCL commands within macro definitions are indented.
  75.