title: Printing to a Brother Label Printer from the browser
body: <p>I am wanting to print labels from a Brother Label Printer from a web browser. I know DYMO has a JavaScript framework that makes printing from the browser simple. But I have customers with a Brother label printer so I need to make it work.</p>
  <p>I've been doing some testing and some searching and it's surprising how little information is out there on this subject.</p>
  <p>So far the only browser I have had success with is Google Chrome as it doesn't seem to print header and footers. I have installed the printer/drivers and created a custom paper size which measures 62 x 29mm.</p>
  <p><img src="https://s9.postimg.org/s81aykqjj/Custom_Paper_Size.png" alt="Custom Paper Size" /></p>
  <p>When I try to print, it's splitting the text over 5 labels. I have the following text on the page I am trying to print:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;utf-8&quot; /&gt;
      &lt;title&gt;Print&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;p style=&quot;margin: 0; padding: 0; line-height: 13px; font-size: 11px; font-family: Arial; font-weight: normal; border: 1px solid #000;&quot;&gt;Line 1&lt;br /&gt;
  Line 2&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>But it prints 5 pages as you can see from the print que sample.</p>
  <p><img src="https://s9.postimg.org/nbxo6vqe7/Print_Test.png" alt="Custom Paper Size" /></p>
  <p>Has anyone tackled this before or have any suggestions.</p>
  <hr />
  <p><strong>UPDATE</strong></p>
  <p>After changing the the margins listed in the first screenshot above to 0, it got it down to two pages. But there's still a huge margin around it:</p>
  <p><img src="https://s30.postimg.org/l754ajzj5/Brother_2.png" alt="2 Pages" /></p>