I want to print shortcuts from my Brother Label printer from a web browser. I know that DYMO has a JavaScript environment that makes printing from the browser simple. But I have clients with a Brother label printer, so I need to get it working.
I did some tests and some searches, and it is amazing how little information on this.
So far, the only browser I've had success with is Google Chrome, since it doesn't seem to print headers and footers. I installed the printer / drivers and created a custom paper size of 62 x 29 mm.

When I try to print it breaks the text into 5 labels. I have the following text on the page I'm trying to print:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Print</title> </head> <body> <p style="margin: 0; padding: 0; line-height: 13px; font-size: 11px; font-family: Arial; font-weight: normal; border: 1px solid #000;">Line 1<br /> Line 2</p> </body> </html>
But it prints 5 pages, as you can see from the sample print queue. A.

Does anyone solve this earlier or have any suggestions.
UPDATE
After changing the fields listed in the first screenshot above 0, he reached two pages. But there is a huge margin around this:

javascript browser printing
Ben sinclair
source share