--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: printer-driver-ptouch: Incorrect Margins for PT9500PC and PT9800PCN
- From: Dominik Wild <d.wild@glutz.com>
- Date: Tue, 26 Jun 2012 14:22:33 +0200
- Message-id: <20120626122233.21395.6925.reportbug@wid-HP>
Package: printer-driver-ptouch
Version: 1.3-3ubuntu0.1
Severity: normal
Tags: upstream patch
Dear Maintainer,
We have a PT9500PC and a PT9800PCN which is compatible to the
PT9500PC (confirmed by Brother). Both printers produce
additional margins at the left and right side of each printed label. These
margins are completely unrelated to the margins set using the CUPS options,
therefore this actually resulted in a label which is slightly larger than
the specified page size. Finally I figured out that setting the margin to
zero using the documented ESC-sequence solved that problem (see the
attached patch).
-- System Information:
Debian Release: wheezy/sid
APT prefers precise-updates
APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise-proposed'), (500, 'precise'), (100, 'precise-backports')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-26-generic-pae (SMP w/4 CPU cores)
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages printer-driver-ptouch depends on:
ii ghostscript 9.05~dfsg-0ubuntu4
ii libc6 2.15-0ubuntu10
ii libcups2 1.5.3-0ubuntu1
ii libcupsimage2 1.5.3-0ubuntu1
ii python 2.7.3-0ubuntu2
ii xz-utils 5.1.1alpha+20110809-3
printer-driver-ptouch recommends no packages.
printer-driver-ptouch suggests no packages.
-- no debconf information
Description: Set margin to zero
PT9500PC produces an annoying margin left and right of each label.
Setting the margin to zero using the documented ESC-sequnce fixed
this behaviour. Attention: Not tested on other printers.
Author: Dominik Wild <d.wild@glutz.com>
--- ptouch-driver-1.3.orig/rastertoptch.c
+++ ptouch-driver-1.3/rastertoptch.c
@@ -820,7 +820,9 @@ emit_page_cmds (job_options_t* job_optio
emit_quality_rollfed_size (job_options, new_page_options,
page_size_y, image_height_px);
- /* WHY DON'T WE SET MARGIN (ESC i d ...)? */
+ /* Set zero margin */
+ putchar (ESC); putchar (0x69); putchar (0x64);
+ putchar (0x00); putchar (0x00);
/* Set pixel data transfer compression */
if (force) {
--- End Message ---
--- Begin Message ---
- To: 679117-done@bugs.debian.org
- Subject: Re: Bug#679117: printer-driver-ptouch: Incorrect Margins for PT9500PC and PT9800PCN
- From: Didier 'OdyX' Raboud <odyx@debian.org>
- Date: Thu, 30 Jan 2020 21:25:07 +0100
- Message-id: <60788397.IPxemsqdoF@odyx.org>
- In-reply-to: <20120626122233.21395.6925.reportbug@wid-HP>
- References: <20120626122233.21395.6925.reportbug@wid-HP>
Control: tags -1 +wontfix
Le mardi, 26 juin 2012, 14.22:33 h CET Dominik Wild a écrit :
> We have a PT9500PC and a PT9800PCN which is compatible to the
> PT9500PC (confirmed by Brother). Both printers produce
> additional margins at the left and right side of each printed label. These
> margins are completely unrelated to the margins set using the CUPS options,
> therefore this actually resulted in a label which is slightly larger than
> the specified page size. Finally I figured out that setting the margin to
> zero using the documented ESC-sequence solved that problem (see the
> attached patch).
The concerned code has changed too much; let's just close this. Please reopen
if you still have a patch to apply against the latest printer-driver-ptouch
source.
Cheers, OdyX
--
OdyX
--- End Message ---