Simple modifications of the HP LaserJet 4 colon files will work for almost all users. This document describes those changes.
This document supports AIX 4.1.5. Support for AIX 4.2 and later is provided in hpdj-c virtual printers.
Some models of the HP DeskJet 1200C support a PostScript Option. When using these printers, you can add as an HPLJ-4, but be sure to remove the paper tray selection option from the ci attribute.
As for color, the virtual printer really doesn't do anything there. In fact if you are going to print color documents you should do this in passthrough mode.
hp1200 lpx hplj-4 (PCL) To LIST attributes, enter AttributeName1 ... (* for all attributes) To CHANGE an attribute value, enter AttributeName=NewValue To FORMAT and EDIT an attribute value, enter AttributeName~v To EDIT the attribute file, enter ~v To terminate, press Enter: cr=[enter]
Command To Initialize the Printer
ci = %I[pU]%?%G_j%{2}%=%t%IpL%e%I[pR,pL,eR,eP,c1,eT,eS,eO,ct,eF,eu,es,eC]%;
* %IpU          INCLUDE: (Reset command)
* %?            <IF>
*     %G_j      PUSH: (INITIALIZE printer?)
*     %{2}      PUSH: (Integer Constant 2)
*     %=        PUSH: (pop2 = pop1 ?)
* %t            <THEN>
*     %IpL      INCLUDE: (Command to set printer language)
* %e            <ELSE>
*     %IpR      INCLUDE: (Command to set printer resolution )
*     %IpL      INCLUDE: (Command to set printer language)
      %IeR      INCLUDE: (PCL Reset)
      %IeP      INCLUDE: (Select pitch - default is 10)
      %Ic1      INCLUDE: (Select the Roman-8 symbol set)
      %IeT      INCLUDE: (Set Typeface/style/weight)
*     %IeS      INCLUDE: (Set Duplex/Simplex Mode)
      %IeO      INCLUDE: (Specify the page orientation)
      %Ict      INCLUDE: (Set line termination mode)
*     %IeF      INCLUDE: (Select font if specified)
*     %Ieu      INCLUDE: (Generate the paper source escape sequence)
      %Ies      INCLUDE: (Set Page Size)
      %IeC      INCLUDE: (Set the vertical line spacing (VMI))
* %;            <END>
Command To Initialize the Printer
ci = %IpU%?%G_j%{2}%=%t%IpL%e%I[pR,pL,eR,eP,c1,eT,eS,eO,ct,eF,eu,es,eC]%;
     %IeR      INCLUDE: (PCL Reset)
     %IeP      INCLUDE: (Select pitch - default is 10)
     %Ic1      INCLUDE: (Select the Roman-8 symbol set)
     %IeT      INCLUDE: (Set Typeface/style/weight)
     %IeO      INCLUDE: (Specify the page orientation)
     %Ict      INCLUDE: (Set line termination mode)
     %Ies      INCLUDE: (Set Page Size)
     %IeC      INCLUDE: (Set the vertical line spacing (VMI))
~
     ' statusdict begin '
     %?        <IF>
         %G_u  PUSH: (Input PAPER SOURCE)
         %{2}  PUSH: (Integer Constant 2)
         %=    PUSH: (pop2 = pop1 ?)
     %t        <THEN>
         '3'
     %e        <ELSE>
         %G_u  PUSH: (Input PAPER SOURCE)
         %{3}  PUSH: (Integer Constant 3)
         %=    PUSH: (pop2 = pop1 ?)
     %t        <THEN>
         '2'
     %e        <ELSE>
         %G_u  PUSH: (Input PAPER SOURCE)
         %{7}  PUSH: (Integer Constant 7)
         %=    PUSH: (pop2 = pop1 ?)
     %t        <THEN>
         '1'
     %e        <ELSE>
         '0'
     %;        <END>
     ' setpapertray end'