The driver uses "MediaType" to identify whether the printer is being fed with continuous paper tape (MediaType="roll") or die-cut labels (MediaType="labels"). If the MediaType field in the CUPS page header (cups_page_header_t) is set to "Labels" (case insensitive match), then the driver is configured to tell the printer to accept die-cut labels.
The MediaType fed from CUPS is always an empty string, so the driver assumes continuous paper rolls. Also, the Label Preamble (only sent to QL series printers, explained in the QL series reference manual on undocprint.) is incorrectly coded: * ESC i z (1B-69-7A) "Specify print information" byte n1 defines which fields in the command are valid. This is always set to zero (normal) or 0x40 (high quality printing). The printer is never told that the paper type (continuous/diecut), width or length are valid. * ESC i z (1B-69-7A) "Specify print information" byte n2 defines whether the printer is loaded with continuous paper tape (0x0A) or die-cut labels (0x0B). The driver uses the values 0x00 (continuous) and 0x01 (diecut). * A comment in the driver asks " /* WHY DON'T WE SET MARGIN (ESC i d ...)? */" -- good question. The QL manual specifies that for die-cut labels, the margin must be set to zero. For continuous tape, apparently we should set 35 dots. Perhaps fixing the MediaType reading (so the driver correctly gets the MediaType from CUPS) and the label preamble might get this working properly? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1439895 Title: QL-500 prints past end of label To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ptouch-driver/+bug/1439895/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs