home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / foomatic / db / source / driver / pxl1010.xml < prev    next >
Encoding:
Text File  |  2005-08-15  |  1.4 KB  |  39 lines

  1. <driver id="driver/pxl1010">
  2.  <name>pxl1010</name>
  3.  <url></url>
  4.  <execution>
  5.   <ghostscript />
  6.   <prototype>gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=pxlmono%A%Z -sOutputFile=- - | perl -0777 -e 'my $d; read(STDIN, $d, 10000); $d =~ s/(ENTER LANGUAGE[^\n]*\n[^\n]*\n[^A]*A)/$1\xc2\x11\x20\x70\x68\xf8\x91\x46/s; print $d; while (read(STDIN, $d, 10000)) {print $d}' | perl -p -e 'if (! $did) { s/\xc0.\xf8\x26/\xc0%E\xf8\x26/ && $did++; }'</prototype>
  7.   <ppdentry>
  8.    *DefaultResolution: 600dpi
  9.   </ppdentry>
  10.  </execution>
  11.  <comments>
  12.   <en>
  13.     
  14.     "pxl1010" is not a new driver, but a special way of using the
  15.     "pxlmono" GhostScript driver to make the HP LaserJet 1010 and 1012
  16.     work reliably.  The trick is to add a special sequence of 8 bytes
  17.     at the BeginSession operator of the PCL-XL data stream.<p>
  18.  
  19.     Simply using "pxlmono" does not print anything and using a PCL-5e
  20.     driver (HPIJS, "ljet4", ...) leads in principle to the jobs being
  21.     printed, but sometimes the printer crashes with an "Unsupported
  22.     personality: PCL" message.<p>
  23.  
  24.     Thanks to Carl Michal (michal at physics dot ubc dot ca) for
  25.     finding out that. He analyzed the output of the Windows driver,
  26.     where he found this "magic" 8-byte sequence.<p>
  27.  
  28.   </en>
  29.  </comments>
  30.  <printers>
  31.   <printer>
  32.    <id>printer/HP-LaserJet_1010</id>
  33.   </printer>
  34.   <printer>
  35.    <id>printer/HP-LaserJet_1012</id>
  36.   </printer>
  37.  </printers>
  38. </driver>
  39.