[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#679117: marked as done (printer-driver-ptouch: Incorrect Margins for PT9500PC and PT9800PCN)



Your message dated Thu, 30 Jan 2020 21:25:07 +0100
with message-id <60788397.IPxemsqdoF@odyx.org>
and subject line Re: Bug#679117: printer-driver-ptouch: Incorrect Margins for PT9500PC and PT9800PCN
has caused the Debian Bug report #679117,
regarding printer-driver-ptouch: Incorrect Margins for PT9500PC and PT9800PCN
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
679117: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679117
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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 ---
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 ---

Reply to: