<driver id="driver/hl7x0">
 <name>hl7x0</name>
 <url>http://www.cs.wisc.edu/~ghost/doc/printer.htm</url>
 <execution>
  <ghostscript />
  <prototype>RES=%E; gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=hl7x0%A%Z -r$RES -sOutputFile=- - | perl -e &apos;my $u = &quot;%U&quot;; my $j = &quot;%T&quot;; my $p = &quot;%F&quot;; my $r = &quot;&apos;$RES&apos;&quot;; my $e = &quot;%G&quot;; my $m = &quot;%H&quot;; my $d = &quot;%I&quot;; my $t = &quot;%J&quot;; my $pcmd = &quot;&quot;; if ($p =~ /^\d\d\d\d$/) {$u =~ s/\%U//; $u ||= &quot;Unknown&quot;; $j =~ s/\%T//; $j ||= &quot;Unknown&quot;; $u = chr(length($u) + 1) . $u . &quot;\x00&quot;; $j = chr(length($j) + 1) . $j . &quot;\x00&quot;; $p = chr(length($p) + 1) . $p . &quot;\x00&quot;; $pcmd = &quot;\@U1$u$j$p&quot;}; my $rcode = &quot;\x00&quot;; if ($r =~ /^150(|x150)$/) {$rcode = &quot;\x0a&quot;} elsif ($r =~ /^300(|x300)$/) {$rcode = &quot;\x05&quot;} elsif ($r =~ /^600(|x600)$/) {$rcode = &quot;\x00&quot;} elsif ($r =~ /^1200(|x1200)$/) {$rcode = &quot;\x0f&quot;}; my $rcmd = &quot;\@L$rcode&quot;; my $ecmd = ($e =~ /^[0123]$/ ? &quot;\@E&quot; . chr($e) : &quot;&quot;); my $mcmd = ($m =~ /^[012345678]$/ ? &quot;\@J\x00&quot; . chr($m) : &quot;&quot;); my $dcmd = ($d =~ /^[12]$/ ? &quot;\@O$d&quot; : &quot;&quot;); my $tcmd = ($t =~ /^[12MOo]$/ ? &quot;\@S$t&quot; : &quot;&quot;); my $did = 0; while (&lt;&gt;) {if (!$did) {s/\@L./$pcmd$rcmd$ecmd$mcmd$dcmd$tcmd/s &amp;&amp; $did ++}; print}&apos;</prototype>
 </execution>
 <comments>
  <en>

    Fortunately, Brother uses the same protocol for their host-based
    printers for many years and an appropriate driver is embedded in
    GhostScript, named "hl7x0". Unfortunately the driver was not
    updated for the additional options and resolutions of newer
    Brother printers, so that simply using the driver does only give
    very basic support for the current models (only 600 dpi, no
    Duplex, no tray selection, ...).&lt;p&gt;

    Recently &lt;a
    href="http://sourceforge.net/projects/hbp-for-brother"&gt;the
    Windows driver output of the newer models was
    investigated&lt;/a&gt; and it turned out that for the additional
    options only the appropriate commands need to be inserted at the
    beginning of the data stream.&lt;p&gt;

    On the mentioned site you find a PDF file with documentation about
    the options and a filter for inserting them into the output data
    stream of GhostScript. As probably many distributions will not
    include this filter, the Foomatic data and the resulting PPD files
    here fo all this work without needing the filter. So you only need
    the PPD from here and the GhostScript which comes with your
    distribution and you will have access to all resolutions including
    HQ1200 (2400x600 dpi), economy mode, media types, duplex, tray
    selection, and even password-protected printing (aka "Locked
    Print" or "Secured Print").&lt;p&gt;

    Note that not all settings are available on all printers,
    especially on older models. On some printers you will get a
    shifted page if you use a low resolution. Use 600 dpi in such a
    case. Please report everything on our Brother forum, so that we
    can exclude unsuitable settings from the PPDs.&lt;p&gt;

    With the "HQ1200" resolution setting the economy mode and duplex
    settings are ignored. You will always get one-sided printouts with
    standard toner density.&lt;p&gt;

    Try this driver also with PostScript and PCL printers from Brother
    (use simply a PPD file for a printer which is listed as supported
    by this driver). Do you get better/faster results or more
    functionality? Please report on the Brother forum.&lt;p&gt;

    if you have a monchrome laser from Brother which is not listed at
    all on OpenPrinting, start trying with this driver and report
    on the Brother forum.&lt;p&gt;

  </en>
 </comments>
 <printers>
  <printer>
   <id>printer/Brother-HL-720</id><!-- Brother HL-720 -->
  </printer>
  <printer>
   <id>printer/Brother-HL-730</id><!-- Brother HL-730 -->
  </printer>
  <printer>
   <id>printer/Brother-HL-820</id><!-- Brother HL-820 -->
  </printer>
  <printer>
   <id>printer/Brother-HL-1020</id><!-- Brother HL-1020 -->
  </printer>
  <printer>
   <id>printer/Brother-HL-1040</id><!-- Brother HL-1040 -->
   <comments>
    <en>Works for 300 or 600dpi; faster than PCL.</en>
   </comments>
  </printer>
  <printer>
   <id>printer/Brother-MFC-8300</id><!-- Brother MFC-8300 -->
  </printer>
  <printer>
   <id>printer/Brother-MFC-9050</id><!-- Brother MFC-9050 -->
   <comments>
    <en>Prints at 600dpi.</en>
   </comments>
  </printer>
 </printers>
</driver>